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
fdc5421561
commit
88a67d7442
@ -2181,7 +2181,7 @@ class calendar_uiforms extends calendar_ui
|
||||
}
|
||||
$user_and_memberships = $GLOBALS['egw']->accounts->memberships($user, true);
|
||||
$user_and_memberships[] = $user;
|
||||
if (!array_intersect(array_keys($event['participants']), $user_and_memberships))
|
||||
if (!array_intersect(array_keys($event['participants'] ?? []), $user_and_memberships))
|
||||
{
|
||||
$event['error'] .= ($event['error'] ? "\n" : '').lang('You are not invited to that event!');
|
||||
if ($event['id'])
|
||||
|
Loading…
Reference in New Issue
Block a user