Calendar: Another attempt to avoid error when accepting external invitation

calendar_uiforms::event_changed(): Argument #2 ($_old) must be of type
array, bool given, called in
/var/www/epl-23.1/calendar/inc/class.calendar_uiforms.inc.php on line 2295
This commit is contained in:
nathan 2023-10-16 08:44:01 -06:00
parent 7c63d05bd5
commit a84dd3d34b

View File

@ -2428,7 +2428,7 @@ class calendar_uiforms extends calendar_ui
}
$tpl = new Etemplate('calendar.meeting');
$tpl->exec('calendar.calendar_uiforms.meeting', $event, array(), $readonlys, $event+array(
'old' => $existing_event ?: [],
'old' => is_array($existing_event) ? $existing_event : [],
'extern_organizer' => $extern_organizer ?? [],
'from_extern_organizer' => $from_extern_organizer ?? false,
), 2);