mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 19:03:14 +01:00
fix PHP 8.0 TypeError: explode(): Argument #2 ($string) must be of type string, array given
This commit is contained in:
parent
9409649684
commit
a50139fa24
@ -2077,7 +2077,7 @@ class calendar_boupdate extends calendar_bo
|
||||
'data' => $event['description']
|
||||
);
|
||||
|
||||
foreach(explode(',',$event['category']) as $cat_id)
|
||||
foreach(is_array($event['category']) ? $event['category'] : explode(',', $event['category']) as $cat_id)
|
||||
{
|
||||
$cat_string[] = stripslashes(Api\Categories::id2name($cat_id));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user