Fix ACLFormatterTest
authorPhilipp Holzer <admin+github@philipp.info>
Fri, 1 Nov 2019 13:13:29 +0000 (14:13 +0100)
committerPhilipp Holzer <admin+github@philipp.info>
Fri, 1 Nov 2019 13:13:29 +0000 (14:13 +0100)
- Add nullable to expand() function again
- Add angle bracket support to toString()

remote_permissions/remote_permissions.php

index 6c25df2..ad6d7b2 100644 (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 = [];