From a028689095d9f4d6eb1fffb1ac294d0d0b31ab8a Mon Sep 17 00:00:00 2001 From: laf Date: Sat, 27 Feb 2016 03:54:07 +0000 Subject: [PATCH] Updated alerts query to change ip --- includes/alerts.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/alerts.inc.php b/includes/alerts.inc.php index 23a56932d4..8080703dfa 100644 --- a/includes/alerts.inc.php +++ b/includes/alerts.inc.php @@ -232,6 +232,7 @@ function RunRules($device) { $chk = dbFetchRow("SELECT state FROM alerts WHERE rule_id = ? && device_id = ? ORDER BY id DESC LIMIT 1", array($rule['id'], $device)); $sql = GenSQL($rule['rule']); $qry = dbFetchRows($sql,array($device)); + $qry[0]['ip'] = inet6_ntop($qry[0]['ip']); $s = sizeof($qry); if( $s == 0 && $inv === false ) { $doalert = false;