diff --git a/calendar/inc/class.calendar_groupdav.inc.php b/calendar/inc/class.calendar_groupdav.inc.php index aa4b73c101..49d188498a 100644 --- a/calendar/inc/class.calendar_groupdav.inc.php +++ b/calendar/inc/class.calendar_groupdav.inc.php @@ -1226,7 +1226,7 @@ class calendar_groupdav extends Api\CalDAV\Handler $xml->startDocument('1.0', 'UTF-8'); $xml->startElementNs('C', 'schedule-response', Api\CalDAV::CALDAV); - foreach(array_keys($event['participants']) as $uid) + foreach(array_keys($event['participants'] ?? []) as $uid) { $xml->startElementNs('C', 'response', null);