From 1e6bffc4e5e50ad1a8033c87038d1d79d5b6b0e1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 9 Nov 2021 08:46:35 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: explode(): Argument #2 ($string) must be of type string, array given --- calendar/inc/class.calendar_uiforms.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index 37b047e681..c1863bc176 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -1883,9 +1883,9 @@ class calendar_uiforms extends calendar_ui $readonlys['recur_interval'] = $readonlys['recur_data'] = true; } } - if($content['category'] && !is_array($content['category'])) + if ($content['category'] && !is_array($content['category'])) { - $content['category'] = explode(',',$event['category']); + $content['category'] = explode(',', $content['category']); } // disabling the custom fields tab, if there are none $readonlys['tabs'] = array(