]> source.dussan.org Git - nextcloud-server.git/commitdiff
add primary group users to resultset before caching
authorArthur Schiwon <blizzz@owncloud.com>
Wed, 13 May 2015 23:07:16 +0000 (01:07 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Wed, 13 May 2015 23:09:57 +0000 (01:09 +0200)
apps/user_ldap/group_ldap.php

index 10e8bfd9e6102afbe3985499b14852e040b921a1..0d39b74bbe8c423a96093903dc83addeff9027bd 100644 (file)
@@ -514,10 +514,11 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
                        }
                }
 
+               $groupUsers = array_unique(array_merge($groupUsers, $primaryUsers));
                natsort($groupUsers);
                $this->access->connection->writeToCache('usersInGroup-'.$gid.'-'.$search, $groupUsers);
                $groupUsers = array_slice($groupUsers, $offset, $limit);
-               $groupUsers = array_unique(array_merge($groupUsers, $primaryUsers));
+
 
                $this->access->connection->writeToCache($cacheKey, $groupUsers);