Solved issue with WHERE clause

This commit is contained in:
Jose Gonzalez 2020-03-10 12:00:25 +01:00
parent 3501efb0ad
commit 6488a88636
1 changed files with 2 additions and 2 deletions

View File

@ -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 = '' ";
}