Fixed search by tags in event list

This commit is contained in:
Daniel Maya 2017-10-04 17:43:12 +02:00
parent 285e63d2a7
commit b0b51c649b
1 changed files with 2 additions and 2 deletions

View File

@ -240,9 +240,9 @@ if (!empty($tag_with)) {
$sql_post .= " OR "; $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 .= " OR ";
$sql_post .= "tags LIKE '%, " . tags_get_name($id_tag) . "'"; $sql_post .= "tags LIKE '%," . tags_get_name($id_tag) . "'";
$sql_post .= " OR "; $sql_post .= " OR ";
$sql_post .= "tags LIKE '%, " . tags_get_name($id_tag) . ",%'"; $sql_post .= "tags LIKE '%," . tags_get_name($id_tag) . ",%'";
} }
$sql_post .= ' ) '; $sql_post .= ' ) ';
} }