diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-03-23 16:51:40 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-03-23 16:51:40 +0100 |
commit | 7520d0fb3d2ec6b64134f792be5a6657d764a8e6 (patch) | |
tree | 98d58afd51b5a4f669751f505eb1fa20e0baac76 /apps/user_ldap/group_ldap.php | |
parent | 0e4ba618cf9ae65da764f7b03c91a440fb655c1e (diff) | |
download | nextcloud-server-7520d0fb3d2ec6b64134f792be5a6657d764a8e6.tar.gz nextcloud-server-7520d0fb3d2ec6b64134f792be5a6657d764a8e6.zip |
offset needs to be considered in computed limit
Diffstat (limited to 'apps/user_ldap/group_ldap.php')
-rw-r--r-- | apps/user_ldap/group_ldap.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php index 40d702360fb..5dc4f836904 100644 --- a/apps/user_ldap/group_ldap.php +++ b/apps/user_ldap/group_ldap.php @@ -673,7 +673,7 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface { } $maxGroups = 100000; // limit max results (just for safety reasons) if ($limit > -1) { - $overallLimit = min($limit, $maxGroups); + $overallLimit = min($limit + $offset, $maxGroups); } else { $overallLimit = $maxGroups; } |