mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
fix PHP 8.x TypeError: array_diff(): Argument #1 must be of type array, null given
This commit is contained in:
parent
6bd9051589
commit
5918fac6a9
@ -171,7 +171,7 @@ class mail_acl
|
||||
$content['grid'][$n]['acl_'. $right] = true;
|
||||
}
|
||||
$virtualD = array('e','t');
|
||||
$content['grid'][$n]['acl_c'] = array_diff($virtuals['c'],array_intersect($rights, $virtuals['c'] ?? []))? false: true; //c=kx more information rfc4314, Obsolete Rights
|
||||
$content['grid'][$n]['acl_c'] = array_diff($virtuals['c'] ?? [], array_intersect($rights, $virtuals['c'] ?? []))? false: true; //c=kx more information rfc4314, Obsolete Rights
|
||||
$content['grid'][$n]['acl_d'] = array_diff($virtualD,array_intersect($rights,$virtuals['d'] ?? []))? false: true; //d=et more information rfc4314, Obsolete Rights
|
||||
|
||||
sort($rights);
|
||||
|
Loading…
Reference in New Issue
Block a user