This commit is contained in:
Vanessa Gil 2015-04-06 15:26:26 +02:00
parent 2e51480f58
commit f894656d87

View File

@ -169,7 +169,7 @@ if (!empty($tag_with)) {
foreach ($tag_with as $id_tag) { foreach ($tag_with as $id_tag) {
if ($first) $first = false; if ($first) $first = false;
else $sql_post .= " OR "; else $sql_post .= " OR ";
$sql_post .= "tags = '" . tags_get_name($id_tag) . "'"; $sql_post .= "tags LIKE ('%" . tags_get_name($id_tag) . "%')";
} }
$sql_post .= ' ) '; $sql_post .= ' ) ';
} }