mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +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
e95edf60ec
commit
7cd6284f0c
@ -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