diff --git a/includes/alerts.inc.php b/includes/alerts.inc.php index 12b10a2473..45d8ae7e83 100644 --- a/includes/alerts.inc.php +++ b/includes/alerts.inc.php @@ -36,7 +36,7 @@ function GenSQL($rule) return false; } //Pretty-print rule to dissect easier - $pretty = array('*' => '*', '(' => ' ( ', ')' => ' ) ', '/' => '/', '&&' => ' && ', '||' => ' || ', 'DATE_SUB ( NOW ( )' => 'DATE_SUB( NOW()'); + $pretty = array('&&' => ' && ', '||' => ' || '); $rule = str_replace(array_keys($pretty), $pretty, $rule); $tmp = explode(" ", $rule); $tables = array();