From 373243a19e06af09e37a5b43fa7ad2fad83fecd3 Mon Sep 17 00:00:00 2001 From: f0o Date: Fri, 3 Apr 2015 13:14:01 +0000 Subject: [PATCH] Hotfixes Alert-Acks for Worse/Better situations. --- html/forms/ack-alert.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/forms/ack-alert.inc.php b/html/forms/ack-alert.inc.php index 3da5474d1..873aabc12 100644 --- a/html/forms/ack-alert.inc.php +++ b/html/forms/ack-alert.inc.php @@ -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) {