]> source.dussan.org Git - nextcloud-server.git/commitdiff
this must be larger then (>), since buggy behaviour occurs when the parameter is...
authorArthur Schiwon <blizzz@owncloud.com>
Tue, 20 Jan 2015 16:50:53 +0000 (17:50 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Tue, 20 Jan 2015 16:50:53 +0000 (17:50 +0100)
apps/user_ldap/lib/access.php

index 0fb968cebe7b26dae8941fed7ae7ee3af988caa3..b6394823947cdc9476f7fd86a7f5beb4ca1ccbc3 100644 (file)
@@ -152,7 +152,7 @@ class Access extends LDAPUtility implements user\IUserTools {
                $pagingSize = intval($this->connection->ldapPagingSize);
                // 0 won't result in replies, small numbers may leave out groups
                // (cf. #12306), 500 is default for paging and should work everywhere.
-               $maxResults = $pagingSize < 20 ? $pagingSize : 500;
+               $maxResults = $pagingSize > 20 ? $pagingSize : 500;
                $this->initPagedSearch($filter, array($dn), array($attr), $maxResults, 0);
                $dn = $this->DNasBaseParameter($dn);
                $rr = @$this->ldap->read($cr, $dn, $filter, array($attr));