From 18a993145e53f9ea1dfc7fb5f284459ef073135a Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Mon, 7 Sep 2020 14:38:43 +0200 Subject: [PATCH] Fixed type array warning messages --- pandora_console/operation/events/events.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 59fbb5a184..f9cee76b72 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -471,16 +471,16 @@ $tags_select_without = []; $tag_with_temp = []; $tag_without_temp = []; foreach ($tags as $id_tag => $tag) { - if ((array_search($id_tag, $tag_with) === false) - || (array_search($id_tag, $tag_with) === null) + if (is_array($tag_with) === true + && ((array_search($id_tag, $tag_with) === false) || (array_search($id_tag, $tag_with) === null)) ) { $tags_select_with[$id_tag] = ui_print_truncate_text($tag, 50, true); } else { $tag_with_temp[$id_tag] = ui_print_truncate_text($tag, 50, true); } - if ((array_search($id_tag, $tag_without) === false) - || (array_search($id_tag, $tag_without) === null) + if (is_array($tag_without) === true + && ((array_search($id_tag, $tag_without) === false) || (array_search($id_tag, $tag_without) === null)) ) { $tags_select_without[$id_tag] = ui_print_truncate_text($tag, 50, true); } else {