mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Fix PHP8.0 (TypeError): array_diff(): Argument #2 must be of type array, null given
This commit is contained in:
parent
62fcc3156c
commit
dd42733393
@ -193,7 +193,7 @@ class admin_acl
|
||||
}
|
||||
else
|
||||
{
|
||||
$check = array_diff($memberships, $groups);
|
||||
$check = array_diff($memberships, (array)$groups);
|
||||
//error_log(__METHOD__."() app=$app, array_diff(memberships=".array2string($memberships).", groups=".array2string($groups).")=".array2string($check));
|
||||
if (!$check) continue; // would give sql error otherwise!
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user