]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/ACL.php
Apply suggestions from code review
[friendica.git] / src / Core / ACL.php
index be32670b7c05b0ba46c0326210b64ff8b1a952c5..1bf8ef03eee9fdc8f8b1a4f2aa1f2fffd9582b27 100644 (file)
@@ -167,12 +167,12 @@ class ACL
 
                $acl_contacts[] = $acl_yourself;
 
-               $acl_forums = Contact::selectToArray($fields,
+               $acl_groups = Contact::selectToArray($fields,
                        ['uid' => $user_id, 'self' => false, 'blocked' => false, 'archive' => false, 'deleted' => false,
                        'network' => Protocol::FEDERATED, 'pending' => false, 'contact-type' => Contact::TYPE_COMMUNITY], $params
                );
 
-               $acl_contacts = array_merge($acl_forums, $acl_contacts);
+               $acl_contacts = array_merge($acl_groups, $acl_contacts);
 
                array_walk($acl_contacts, function (&$value) {
                        $value['type'] = 'contact';