Code Duplication    Length = 4-4 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 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
@@ 568-571 (lines=4) @@
565
				$this->pushContext(array('scope' => 'php', 'arCurrentObject' => $this));
566
				ar_events::fire( 'onsave', $eventData ); // nothing to prevent here, so ignore return value
567
				$this->popContext();
568
			} else {
569
				$this->error = ar::error( ''.$this->store->error, 1107, $this->store->error);
570
				$result = false;
571
			}
572
		}
573
		if( $needsUnlock == true ){
574
			$this->unlock();