From 76d996a96650e70a5b60d2b041dcd41adbcfdaae Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Thu, 24 Jun 2021 12:51:14 +0200 Subject: [PATCH] Fixed tags in events --- pandora_console/include/functions_events.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index c1d7aeb404..acf0b8f0dc 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -1151,7 +1151,12 @@ function events_get_all( $tags_names[$id_tag] = tags_get_name($id_tag); } - $_tmp .= ' AND ( '; + if ($tags[0] === $id_tag) { + $_tmp .= ' AND ( '; + } else { + $_tmp .= ' OR ( '; + } + $_tmp .= sprintf( ' tags LIKE "%s" OR', $tags_names[$id_tag]