mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +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
b7ef766ebb
commit
c3fb7eda8e
@ -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