mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
fix PHP 8.0 error: array_keys(): Argument #1 ($array) must be of type array, null given
This commit is contained in:
parent
f62ff90444
commit
88f76e4bc1
@ -1634,7 +1634,7 @@ class calendar_boupdate extends calendar_bo
|
|||||||
$memberships = $GLOBALS['egw']->accounts->memberships($uid,true);
|
$memberships = $GLOBALS['egw']->accounts->memberships($uid,true);
|
||||||
}
|
}
|
||||||
$memberships[] = $uid;
|
$memberships[] = $uid;
|
||||||
return array_intersect($memberships, array_keys($event['participants'])) && $this->check_perms(Acl::EDIT,0,$uid);
|
return array_intersect($memberships, array_keys($event['participants'] ?? [])) && $this->check_perms(Acl::EDIT,0,$uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user