From 6488a886361ad378d8397247cffb0bc35c1d682e Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Tue, 10 Mar 2020 12:00:25 +0100 Subject: [PATCH] Solved issue with WHERE clause --- pandora_console/include/functions_tags.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_tags.php b/pandora_console/include/functions_tags.php index 6226fc4a41..5aace86006 100644 --- a/pandora_console/include/functions_tags.php +++ b/pandora_console/include/functions_tags.php @@ -1366,9 +1366,9 @@ function tags_checks_event_acl($id_user, $id_group, $access, $tags=[], $children $tag_conds = ''; if (!empty($tags_str)) { - $tag_conds = " AND (tags IN ('$tags_str') OR tags = '') "; + $tag_conds = " AND (tags IN ($tags_str) OR tags = '') "; } else if (!empty($tags_user)) { - $tag_conds = " AND (tags IN ('$tags_user') OR tags = '') "; + $tag_conds = " AND (tags IN ($tags_user) OR tags = '') "; } else { $tag_conds = " AND tags = '' "; }