mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
fix PHP 8.0 TypeError: Unsupported operand types: int | array
This commit is contained in:
parent
5aed6918bd
commit
8020301a84
@ -1746,7 +1746,7 @@ class calendar_boupdate extends calendar_bo
|
||||
static $memberships=null;
|
||||
if (is_null($memberships))
|
||||
{
|
||||
$memberships = $GLOBALS['egw']->accounts->memberships($user,true);
|
||||
$memberships = $GLOBALS['egw']->accounts->memberships($user,true) ?: [];
|
||||
$memberships[] = $user;
|
||||
}
|
||||
foreach($cat_rights as $uid => $value)
|
||||
|
Loading…
Reference in New Issue
Block a user