Check if the item is an array.

This commit is contained in:
Gombos Lorand 2013-12-05 12:03:07 +02:00
parent 85a9132c9b
commit 764e368dc3

View file

@ -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;
}
}