Commit 0de9368a authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #12100 from owncloud/fix-infinite-loop

Fix infinite loop if count and limit is 0
parents 9368de5a 081787d6
......@@ -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;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment