From: Philipp Holzer Date: Fri, 1 Nov 2019 13:13:29 +0000 (+0100) Subject: Fix ACLFormatterTest X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=06bb1bc62d5b04e6c68c19f4b98ea7b4d32fc698;p=friendica-addons.git Fix ACLFormatterTest - Add nullable to expand() function again - Add angle bracket support to toString() --- diff --git a/remote_permissions/remote_permissions.php b/remote_permissions/remote_permissions.php index 6c25df27..ad6d7b25 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 = [];