diff --git a/includes/alerts.inc.php b/includes/alerts.inc.php index c512e60c3..b98f4e112 100644 --- a/includes/alerts.inc.php +++ b/includes/alerts.inc.php @@ -38,7 +38,7 @@ function GenSQL($rule) { $rule = str_replace($opt,$tmpp[0].'.'.$tmpp[1],$rule); } } - $tables = array_unique($tables); + $tables = array_keys(array_flip($tables)); $x = sizeof($tables); $i = 0; $join = "";