Ignore:
Timestamp:
02/23/12 17:14:32 (12 years ago)
Author:
airton
Message:

Ticket #2088 - Melhorias no editor de regras de filtro de mensagens do Expresso

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/api/controller.php

    r5514 r5539  
    422422                foreach( $interceptors[ $eventType ] as $intercept => $interceptor ) 
    423423                { 
    424                     $return = $interceptor->$intercept( $params['URI'], $params['properties'], $params['criteria'], $original/*, $params['service']*/ ); 
     424                    $return = $interceptor->$intercept( $params['URI'], $params['properties'], $params['criteria'], $original /*, $params['service'] */); 
    425425 
    426426                    if( $return === false ) 
     
    560560                    $TX['rollback'] = !!!$params['properties']; 
    561561 
    562                     if( $params['properties'] && isset($params['properties']['id']) ) 
     562                    if( $params['properties'] && is_array($params['properties']) && isset($params['properties']['id']) ) 
    563563                        $TX['id'] = $params['properties']['id']; 
    564564 
     
    639639                $result = Controller::call( $method, $URI, $data, false, false, true ); 
    640640 
    641                 if( !is_bool( $result ) && !is_string( $result ) && isset( $result['id'] ) ) 
     641                if( is_array( $result ) && isset( $result['id'] ) ) 
    642642                      $URI['id'] = $result['id']; 
    643643 
Note: See TracChangeset for help on using the changeset viewer.