Permalink
Browse files

Return null when no results

  • Loading branch information...
1 parent 8e4dd6f commit eb1dffdccee7d96a3380fd289c27303868560fd4 @chanmix51 committed Mar 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/GHub/Silex/PommGuard/Model/PommUserMap.php
View
2 src/GHub/Silex/PommGuard/Model/PommUserMap.php
@@ -44,7 +44,7 @@ public function checkPassword(Array $pk, $password, $plain = false)
$results = $this->findWhere($where, $where->getValues());
- return (!$results->isEmpty()) ? $results->current() : null;
+ return (count($results) > 0) ? $results->current() : null;
}
public function findByPkWithAcls(Array $pk)

0 comments on commit eb1dffd

Please sign in to comment.