]> git.mxchange.org Git - friendica-addons.git/commitdiff
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 6c25df278a4bd4f21096756bda70566992a71686..ad6d7b251ee81173c01eb656c91f87bba28419c5 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 = [];