Skip to content

Commit

Permalink
fixed error when passing false for $conditions, closes #1685
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram authored and markstory committed May 8, 2011
1 parent 527ff5f commit 9e4ecba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/controller/components/auth.php
Expand Up @@ -841,7 +841,7 @@ function &getModel($name = null) {
*/
function identify($user = null, $conditions = null) {
if ($conditions === false) {
$conditions = null;
$conditions = array();
} elseif (is_array($conditions)) {
$conditions = array_merge((array)$this->userScope, $conditions);
} else {
Expand Down

0 comments on commit 9e4ecba

Please sign in to comment.