forked from extern/egroupware
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
|
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