]> git.mxchange.org Git - friendica-addons.git/commitdiff
Check null for acl-fields
authorPhilipp Holzer <admin+github@philipp.info>
Mon, 28 Oct 2019 17:16:09 +0000 (18:16 +0100)
committerPhilipp Holzer <admin+github@philipp.info>
Mon, 28 Oct 2019 17:16:09 +0000 (18:16 +0100)
remote_permissions/remote_permissions.php

index ad6d7b251ee81173c01eb656c91f87bba28419c5..6c25df278a4bd4f21096756bda70566992a71686 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 = [];