From 6ab9b9727e3b4a111754c9fa5d153e956b538d0f Mon Sep 17 00:00:00 2001 From: f0o Date: Thu, 7 May 2015 20:05:41 +0000 Subject: [PATCH] Make scrut happy --- includes/alerts.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/alerts.inc.php b/includes/alerts.inc.php index 9e4c767b8..fe0699706 100644 --- a/includes/alerts.inc.php +++ b/includes/alerts.inc.php @@ -69,8 +69,10 @@ function GenSQL($rule) { //Cannot resolve glue-chain. Rule is invalid. return false; } + $last = ""; + $qry = ""; foreach( $gtmp as $glue ) { - if( !$last ) { + if( empty($last) ) { list($tmp,$last) = explode('.',$glue); $qry .= $glue.' = '; } else {