fixed error when passing false for $conditions, closes #1685

This commit is contained in:
Ceeram 2011-05-05 01:39:48 +02:00 committed by mark_story
parent 527ff5feaf
commit 9e4ecba12a

View file

@ -841,7 +841,7 @@ class AuthComponent extends Object {
*/
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 {