Calendar: 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-11 11:50:57 -06:00
parent 04ad3651a4
commit 6b4a1316d2

View File

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