Check null for acl-fields

This commit is contained in:
Philipp Holzer 2019-10-28 18:16:09 +01:00
parent f1f07251a7
commit 1137b703ed
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
1 changed files with 4 additions and 4 deletions

View File

@ -128,10 +128,10 @@ function remote_permissions_content($a, $item_copy) {
/** @var ACLFormatter $aclFormatter */
$aclFormatter = BaseObject::getClass(ACLFormatter::class);
$allowed_users = $aclFormatter->expand($item['allow_cid']);
$allowed_groups = $aclFormatter->expand($item['allow_gid']);
$deny_users = $aclFormatter->expand($item['deny_cid']);
$deny_groups = $aclFormatter->expand($item['deny_gid']);
$allowed_users = $aclFormatter->expand($item['allow_cid'] ?? '');
$allowed_groups = $aclFormatter->expand($item['allow_gid'] ?? '');
$deny_users = $aclFormatter->expand($item['deny_cid'] ?? '');
$deny_groups = $aclFormatter->expand($item['deny_gid'] ?? '');
$o = L10n::t('Visible to:') . '<br />';
$allow = [];