check if object is an array

This commit is contained in:
Mike Macgirvin 2024-04-11 13:16:18 +10:00
parent 3b43ad2be4
commit 8db5fc28ff

View file

@ -82,7 +82,7 @@ class MessageFilter
return false;
}
}
} elseif (str_starts_with($word, '?+')) {
} elseif (str_starts_with($word, '?+') && is_array($item['obj'])) {
if (self::test_condition(substr($word, 2), $item['obj'])) {
return false;
}
@ -149,7 +149,7 @@ class MessageFilter
return true;
}
}
} elseif (str_starts_with($word, '?+')) {
} elseif (str_starts_with($word, '?+') && is_array($item['obj'])) {
// ?+field item.obj field match
if (self::test_condition(substr($word, 2), $item['obj'])) {
return true;