Changeset 5539 for trunk/prototype/api/controller.php
- Timestamp:
- 02/23/12 17:14:32 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/api/controller.php
r5514 r5539 422 422 foreach( $interceptors[ $eventType ] as $intercept => $interceptor ) 423 423 { 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'] */); 425 425 426 426 if( $return === false ) … … 560 560 $TX['rollback'] = !!!$params['properties']; 561 561 562 if( $params['properties'] && is set($params['properties']['id']) )562 if( $params['properties'] && is_array($params['properties']) && isset($params['properties']['id']) ) 563 563 $TX['id'] = $params['properties']['id']; 564 564 … … 639 639 $result = Controller::call( $method, $URI, $data, false, false, true ); 640 640 641 if( !is_bool( $result ) && !is_string( $result ) && isset( $result['id'] ) )641 if( is_array( $result ) && isset( $result['id'] ) ) 642 642 $URI['id'] = $result['id']; 643 643
Note: See TracChangeset
for help on using the changeset viewer.