diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index 7089a49048..3b95d480f0 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -2181,7 +2181,7 @@ class calendar_uiforms extends calendar_ui } $user_and_memberships = $GLOBALS['egw']->accounts->memberships($user, true); $user_and_memberships[] = $user; - if (!array_intersect(array_keys($event['participants']), $user_and_memberships)) + if (!array_intersect(array_keys($event['participants'] ?? []), $user_and_memberships)) { $event['error'] .= ($event['error'] ? "\n" : '').lang('You are not invited to that event!'); if ($event['id'])