Browse Source

Don't use empty()

Refs #9009
mark_story 9 years ago
parent
commit
97e071f5ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ORM/Rule/ExistsIn.php

+ 1 - 1
src/ORM/Rule/ExistsIn.php

@@ -65,7 +65,7 @@ class ExistsIn
     {
         if (is_string($this->_repository)) {
             $repository = $options['repository']->association($this->_repository);
-            if (empty($repository)) {
+            if (!$repository) {
                 throw new RuntimeException(sprintf(
                     "ExistsIn rule for '%s' is invalid. The '%s' association is not defined.",
                     implode(', ', $this->_fields),