From 63b069d739e7aa85f4e36108624aec7a71964e91 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Wed, 22 Nov 2023 11:20:46 +0100 Subject: [PATCH] #11705 fix for id as array --- pandora_console/include/functions_events.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index c680460ec2..07953c1994 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -6245,7 +6245,10 @@ function events_event_custom_id( global $config; // Cleans up the selection for all unwanted values also casts any single // values as an array. - $id_event = (array) safe_int($id_event, 1); + if (![$id_event]) { + $id_event = (array) safe_int($id_event, 1); + } + // Check ACL. foreach ($id_event as $k => $id) { $event_group = events_get_group($id);