mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +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
537c4652a3
commit
a99eb13066
@ -3247,7 +3247,7 @@ class calendar_uiforms extends calendar_ui
|
||||
else
|
||||
{
|
||||
// Group membership
|
||||
foreach(array_keys($event['participants']) as $id)
|
||||
foreach(array_keys($event['participants'] ?? []) as $id)
|
||||
{
|
||||
if($GLOBALS['egw']->accounts->get_type($id) == 'g' && in_array($uid,$GLOBALS['egw']->accounts->members($id,true)))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user