From 6b4a1316d22c536cf0f8c204e397a0bb0f71a336 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 11 Oct 2023 11:50:57 -0600 Subject: [PATCH] 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 --- calendar/inc/class.calendar_uiforms.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index 899dcfefea..8f67f0a8f6 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -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' => $existing_event ?? [], 'extern_organizer' => $extern_organizer ?? [], 'from_extern_organizer' => $from_extern_organizer ?? false, ), 2);