aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/user_ldap/lib/access.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php
index 1af993677cd..d135ee5b735 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -786,6 +786,7 @@ class Access extends LDAPUtility {
$cr = $this->connection->getConnectionResource();
do {
+ $continue = false;
$search = $this->executeSearch($filter, $base, $attr,
$limit, $offset);
if($search === false) {
@@ -798,12 +799,15 @@ class Access extends LDAPUtility {
if($count !== false) {
$counter += $count;
}
+ if($count === $limit) {
+ $continue = true;
+ }
}
$this->processPagedSearchStatus($sr, $filter, $base, $count, $limit,
$offset, $pagedSearchOK, $skipHandling);
$offset += $limit;
- } while($count === $limit);
+ } while($continue);
return $counter;
}