mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix test by checking against an empty array instead of false
This commit is contained in:
parent
c48afae2dc
commit
c4f8289b53
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ class TreeBehavior extends ModelBehavior {
|
|||
'fields' => array($Model->primaryKey, $parent, $left, $right), 'recursive' => $recursive)
|
||||
);
|
||||
|
||||
if ($values === false) {
|
||||
if (empty($values)) {
|
||||
return false;
|
||||
}
|
||||
list($node) = array_values($values);
|
||||
|
|
Loading…
Reference in a new issue