From 92287916ebef56f9e433cb658de8efee1a940330 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Tue, 13 Feb 2018 16:48:36 +0100 Subject: [PATCH] Fix avoid unexistent tag in tevent acl check --- pandora_console/include/functions_tags.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_tags.php b/pandora_console/include/functions_tags.php index 20238c8b23..08cfecf26e 100644 --- a/pandora_console/include/functions_tags.php +++ b/pandora_console/include/functions_tags.php @@ -1448,7 +1448,9 @@ 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); - $tags_aux[$tag_id] = $tag_id; + if (isset($tag_id)&& ($tag_id !== false)) { + $tags_aux[$tag_id] = $tag_id; + } } $tags_str = implode(',', $tags_aux); }