Fix Alertlog messaging (#14861)

This commit is contained in:
electrocret
2023-02-24 06:10:10 -06:00
committed by GitHub
parent 2da5d4505b
commit c0fd1e15e2

View File

@@ -532,9 +532,9 @@ class RunAlerts
AlertState::RECOVERED => 'recovery',
AlertState::ACTIVE => $obj['severity'] . ' alert',
AlertState::ACKNOWLEDGED => 'acknowledgment',
AlertState::WORSE => 'got worse',
AlertState::BETTER => 'got better',
];
$prefix[3] = &$prefix[0];
$prefix[4] = &$prefix[0];
if ($obj['state'] == AlertState::RECOVERED) {
$severity = Alert::OK;