fix api get agent criticity pandora_enterprise#9723

This commit is contained in:
Daniel Barbero 2022-11-08 09:00:25 +01:00
parent 4ea2f505ab
commit b8939cb624
1 changed files with 1 additions and 1 deletions

View File

@ -800,7 +800,7 @@ function events_get_all(
}
}
if (isset($filter['severity']) === true && $filter['severity'] > 0) {
if (isset($filter['severity']) === true) {
if (is_array($filter['severity']) === true) {
if (in_array(-1, $filter['severity']) === false) {
$not_normal = array_search(EVENT_CRIT_NOT_NORMAL, $filter['severity']);