diff --git a/pandora_console/include/functions_tags.php b/pandora_console/include/functions_tags.php index daa59c57bf..6ccda6fa8a 100644 --- a/pandora_console/include/functions_tags.php +++ b/pandora_console/include/functions_tags.php @@ -756,10 +756,9 @@ function tags_get_acl_tags($id_user, $id_group, $access = 'AR', $return_mode = ' break; case 'event_condition': // Return the condition of the tags for tevento table - $condition = "(".tags_get_acl_tags_event_condition($acltags).")"; - + $condition = tags_get_acl_tags_event_condition($acltags); if(!empty($condition)) { - return " $query_prefix ".$condition; + return " $query_prefix "."(".$condition.")"; } break; }