fix api get agent criticity pandora_enterprise#9723
This commit is contained in:
parent
4ea2f505ab
commit
b8939cb624
|
@ -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 (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']);
|
||||||
|
|
Loading…
Reference in New Issue