From 10293395b54e52b169f4474c8c84c93174aeb8ac Mon Sep 17 00:00:00 2001 From: laf Date: Thu, 26 Feb 2015 12:45:31 +0000 Subject: [PATCH] Added defining fault_detail variable --- html/includes/print-alerts.php | 1 + 1 file changed, 1 insertion(+) diff --git a/html/includes/print-alerts.php b/html/includes/print-alerts.php index 317f81c9da..a8c90cd638 100644 --- a/html/includes/print-alerts.php +++ b/html/includes/print-alerts.php @@ -66,6 +66,7 @@ foreach( dbFetchRows($full_query, $param) as $alert ) { $rule = dbFetchRow("SELECT * FROM alert_rules WHERE id = ? LIMIT 1", array($alert['rule_id'])); $log = dbFetchCell("SELECT details FROM alert_log WHERE rule_id = ? AND device_id = ? ORDER BY id DESC LIMIT 1", array($alert['rule_id'],$alert['device_id'])); $log_detail = json_decode(gzuncompress($log),true); + $fault_detail = ''; foreach( $log_detail['rule'] as $tmp_alerts ) { foreach ($tmp_alerts as $k=>$v) { if( !empty($v) && $k != 'device_id' && (stristr($k,'id') || stristr($k,'desc')) && substr_count($k,'_') <= 1 ) {