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 16dc367b1e
commit 1e6bffc4e5

View File

@ -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(