Fix avoid unexistent tag in tevent acl check

This commit is contained in:
fbsanchez 2018-02-13 16:48:36 +01:00
parent 128be1f9d1
commit 92287916eb
1 changed files with 3 additions and 1 deletions

View File

@ -1448,8 +1448,10 @@ function tags_checks_event_acl($id_user, $id_group, $access, $tags = array(), $c
if (!empty($tags)) {
foreach ($tags as $tag) {
$tag_id = tags_get_id($tag);
if (isset($tag_id)&& ($tag_id !== false)) {
$tags_aux[$tag_id] = $tag_id;
}
}
$tags_str = implode(',', $tags_aux);
}