Skip to content

Commit

Permalink
Fixing fatal error in PHP 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Dec 21, 2014
1 parent 87bcb02 commit 363f8d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/EntityValidator.php
Expand Up @@ -174,7 +174,7 @@ protected function _processValidation($entity, $options) {
return true;
}

$success = empty($entity->validate($validator));
$success = !$entity->validate($validator);

$event = $this->_table->dispatchEvent('Model.afterValidate', $pass);
if ($event->isStopped()) {
Expand Down

0 comments on commit 363f8d0

Please sign in to comment.