mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
fix PHP 8.0 TypeError: array_keys(): Argument #1 ($array) must be of type array, null given
This commit is contained in:
parent
54e5a6bd76
commit
5510c2d20b
@ -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