mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 10: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
fd3b61b6af
commit
2812e35ec7
@ -193,7 +193,7 @@ class admin_acl
|
|||||||
}
|
}
|
||||||
else
|
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));
|
//error_log(__METHOD__."() app=$app, array_diff(memberships=".array2string($memberships).", groups=".array2string($groups).")=".array2string($check));
|
||||||
if (!$check) continue; // would give sql error otherwise!
|
if (!$check) continue; // would give sql error otherwise!
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user