From: Philipp Holzer Date: Mon, 28 Oct 2019 17:16:09 +0000 (+0100) Subject: Check null for acl-fields X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1137b703ed89bbcd6d1e8b58b8914e6d453012bc;p=friendica-addons.git Check null for acl-fields --- diff --git a/remote_permissions/remote_permissions.php b/remote_permissions/remote_permissions.php index ad6d7b25..6c25df27 100644 --- a/remote_permissions/remote_permissions.php +++ b/remote_permissions/remote_permissions.php @@ -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:') . '
'; $allow = [];