diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-11-11 12:15:30 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-11-11 12:15:30 +0100 |
commit | 081787d6ae32e743923cae3ec5772431085443cf (patch) | |
tree | 174447e6fd044871fc5ddecc4ab63aa9c8cdd7e1 | |
parent | 9368de5a8be5b77804fe7b9b1c8d66d5161f7f76 (diff) | |
download | nextcloud-server-081787d6ae32e743923cae3ec5772431085443cf.tar.gz nextcloud-server-081787d6ae32e743923cae3ec5772431085443cf.zip |
Fix infinite loop if count and limit is 0
* otherwise it will always think it hits the limit and need another round to fetch additional results
-rw-r--r-- | apps/user_ldap/lib/access.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php index 12c6f8118d3..d89029abf17 100644 --- a/apps/user_ldap/lib/access.php +++ b/apps/user_ldap/lib/access.php @@ -928,7 +928,7 @@ class Access extends LDAPUtility implements user\IUserTools { foreach($searchResults as $res) { $count = intval($this->ldap->countEntries($cr, $res)); $counter += $count; - if($count === $limit) { + if($count > 0 && $count === $limit) { $hasHitLimit = true; } } |