]> source.dussan.org Git - nextcloud-server.git/commitdiff
with several backends, more than limit can be returned
authorArthur Schiwon <blizzz@owncloud.com>
Fri, 10 Oct 2014 16:58:39 +0000 (18:58 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Fri, 17 Oct 2014 18:16:04 +0000 (20:16 +0200)
lib/private/group/manager.php

index 816e7b427f5b2950d7a3d4a8eb9fd8ccc531fdc4..33a1904dddf0b6320364ee8ca891a2e4abb72637 100644 (file)
@@ -237,7 +237,7 @@ class Manager extends PublicEmitter implements IGroupManager {
                                        }
                                }
                                $searchOffset += $searchLimit;
-                       } while(count($groupUsers) < $searchLimit+$offset && count($filteredUsers) === $searchLimit);
+                       } while(count($groupUsers) < $searchLimit+$offset && count($filteredUsers) >= $searchLimit);
 
                        if($limit === -1) {
                                $groupUsers = array_slice($groupUsers, $offset);