with several backends, more than limit can be returned

This commit is contained in:
Arthur Schiwon 2014-10-10 18:58:39 +02:00
parent 5170dc3ae6
commit a7a532f58a

View 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);