minor fix

This commit is contained in:
alejandro.campos@artica.es 2022-11-16 16:43:21 +01:00
parent 2e7d5aa336
commit 635eb692d1
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'] !== '') { if (isset($filter['severity']) === true && $filter['severity'] !== '' && (int) $filter['severity'] > -1) {
if (is_array($filter['severity']) === true) { if (is_array($filter['severity']) === true) {
if (in_array(-1, $filter['severity']) === false) { if (in_array(-1, $filter['severity']) === false) {
$not_normal = array_search(EVENT_CRIT_NOT_NORMAL, $filter['severity']); $not_normal = array_search(EVENT_CRIT_NOT_NORMAL, $filter['severity']);