fix PHP 8.0 TypeError: explode(): Argument #2 ($string) must be of type string, array given

This commit is contained in:
Ralf Becker 2021-11-09 08:46:35 +01:00
parent 986944c261
commit 6ce457f8e2

View File

@ -1883,9 +1883,9 @@ class calendar_uiforms extends calendar_ui
$readonlys['recur_interval'] = $readonlys['recur_data'] = true; $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 // disabling the custom fields tab, if there are none
$readonlys['tabs'] = array( $readonlys['tabs'] = array(