mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #720 from f0o/ack-hotfix
Hotfixes Alert-Acks for Worse/Better situations.
This commit is contained in:
@@ -22,8 +22,8 @@ if(!is_numeric($alert_id)) {
|
||||
exit;
|
||||
} else {
|
||||
if($state == 2) {
|
||||
$state = 1;
|
||||
} elseif($state == 1) {
|
||||
$state = dbFetchCell('SELECT alerted FROM alerts WHERE id = ?',array($alert_id));
|
||||
} elseif($state >= 1) {
|
||||
$state = 2;
|
||||
}
|
||||
if(dbUpdate(array('state' => $state), 'alerts', 'id=?',array($alert_id)) >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user