mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 02:35:12 +00:00
check if object is an array
This commit is contained in:
parent
3b43ad2be4
commit
8db5fc28ff
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue