forked from extern/egroupware
fix PHP 8.0 TypeError: array_keys(): Argument #1 ($array) must be of type array, null given
This commit is contained in:
parent
65ebea136e
commit
efa66b72fc
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user