From f52662ab26664ac9bf29ac557089884913fa5cbf Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 11 Nov 2014 12:15:30 +0100 Subject: [PATCH] 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 --- apps/user_ldap/lib/access.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php index 44162e32d47..a2ca16dcda3 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; } } -- 2.39.5