[Pkg-owncloud-commits] [owncloud] 56/90: this must be larger then (>), since buggy behaviour occurs when the parameter is a small number

David Prévot taffit at moszumanska.debian.org
Fri Feb 6 21:10:53 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 1c000b799b9367a12f3d56bca5a6f560cd042104
Author: Arthur Schiwon <blizzz at owncloud.com>
Date:   Tue Jan 20 17:50:53 2015 +0100

    this must be larger then (>), since buggy behaviour occurs when the parameter is a small number
---
 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 fef4cc5..a79598d 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -100,7 +100,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));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list