mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix alert bug when key missing (#16281)
This commit is contained in:
@@ -432,7 +432,7 @@ class RunAlerts
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array($alert['state'], [AlertState::ACTIVE, AlertState::WORSE, AlertState::BETTER]) && ! empty($rextra['count']) && ($rextra['count'] == -1 || $alert['details']['count']++ < $rextra['count'])) {
|
if (in_array($alert['state'], [AlertState::ACTIVE, AlertState::WORSE, AlertState::BETTER]) && ! empty($rextra['count']) && isset($alert['details']['count']) && ($rextra['count'] == -1 || $alert['details']['count']++ < $rextra['count'])) {
|
||||||
if ($alert['details']['count'] < $rextra['count']) {
|
if ($alert['details']['count'] < $rextra['count']) {
|
||||||
$noacc = true;
|
$noacc = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user