From efa66b72fcdfd57a526c04861357db35ef3d3b36 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 15 Nov 2021 11:55:24 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: array_keys(): Argument #1 ($array) must be of type array, null given --- calendar/inc/class.calendar_groupdav.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);