From b0b51c649b133f7e90a5508f6ef9a609011dfbcf Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 4 Oct 2017 17:43:12 +0200 Subject: [PATCH] Fixed search by tags in event list --- pandora_console/operation/events/events.build_query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/operation/events/events.build_query.php b/pandora_console/operation/events/events.build_query.php index efb8fb4622..aca3603f8c 100755 --- a/pandora_console/operation/events/events.build_query.php +++ b/pandora_console/operation/events/events.build_query.php @@ -240,9 +240,9 @@ if (!empty($tag_with)) { $sql_post .= " OR "; $sql_post .= "tags LIKE '" . tags_get_name($id_tag) . ",%'"; $sql_post .= " OR "; - $sql_post .= "tags LIKE '%, " . tags_get_name($id_tag) . "'"; + $sql_post .= "tags LIKE '%," . tags_get_name($id_tag) . "'"; $sql_post .= " OR "; - $sql_post .= "tags LIKE '%, " . tags_get_name($id_tag) . ",%'"; + $sql_post .= "tags LIKE '%," . tags_get_name($id_tag) . ",%'"; } $sql_post .= ' ) '; }