mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +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
|
else
|
||||||
{
|
{
|
||||||
// Group membership
|
// 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)))
|
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