diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 3d7de884d6..9b097d4a93 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -1157,7 +1157,7 @@ function events_get_all( } if ($tags[0] === $id_tag) { - $_tmp .= ' AND ( '; + $_tmp .= ' AND (( '; } else { $_tmp .= ' OR ( '; } @@ -1185,7 +1185,7 @@ function events_get_all( $_tmp .= ') '; } - $sql_filters[] = $_tmp; + $sql_filters[] = $_tmp.')'; } }