Allow notification to resume count/delay cycles after maintenance

This commit is contained in:
f0o
2015-04-21 07:06:14 +00:00
parent a2e4a0dcff
commit ef25ed345d
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -163,9 +163,9 @@ function RunAlerts() {
$updet = false;
$noacc = false;
}
if( IsMaintenance($device) > 0 ) {
if( IsMaintenance($alert['device_id']) > 0 ) {
$noiss = true;
$noacc = false;
$noacc = true;
}
if( $updet ) {
dbUpdate(array('details' => gzcompress(json_encode($alert['details']),9)),'alert_log','id = ?',array($alert['id']));