Skip to content

Commit

Permalink
Check if the item is an array.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gombos Lorand committed Dec 5, 2013
1 parent 85a9132 commit 764e368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/Hash.php
Expand Up @@ -130,7 +130,7 @@ public static function extract(array $data, $path) {
if ($conditions) {
$filter = array();
foreach ($next as $item) {
if (self::_matches($item, $conditions)) {
if (is_array($item) && self::_matches($item, $conditions)) {
$filter[] = $item;
}
}
Expand Down

0 comments on commit 764e368

Please sign in to comment.