mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Check if the item is an array.
This commit is contained in:
parent
85a9132c9b
commit
764e368dc3
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ class Hash {
|
|||
if ($conditions) {
|
||||
$filter = array();
|
||||
foreach ($next as $item) {
|
||||
if (self::_matches($item, $conditions)) {
|
||||
if (is_array($item) && self::_matches($item, $conditions)) {
|
||||
$filter[] = $item;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue