|
@@ 291-294 (lines=4) @@
|
| 288 |
|
$objects = $this->store->find($path, $criteria, $limit, $offset); |
| 289 |
|
if (!$this->store->error) { |
| 290 |
|
$result = $this->store->call($function, $args, $objects); |
| 291 |
|
} else { |
| 292 |
|
$this->error = ar::error( ''.$this->store->error, 1110, $this->store->error ); |
| 293 |
|
$result = false; |
| 294 |
|
} |
| 295 |
|
return $result; |
| 296 |
|
} |
| 297 |
|
|
|
@@ 571-574 (lines=4) @@
|
| 568 |
|
$this->pushContext(array('scope' => 'php', 'arCurrentObject' => $this)); |
| 569 |
|
ar_events::fire( 'onsave', $eventData ); // nothing to prevent here, so ignore return value |
| 570 |
|
$this->popContext(); |
| 571 |
|
} else { |
| 572 |
|
$this->error = ar::error( ''.$this->store->error, 1107, $this->store->error); |
| 573 |
|
$result = false; |
| 574 |
|
} |
| 575 |
|
} |
| 576 |
|
if( $needsUnlock == true ){ |
| 577 |
|
$this->unlock(); |