mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
fixed error when passing false for $conditions, closes #1685
This commit is contained in:
parent
527ff5feaf
commit
9e4ecba12a
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue