diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-25 16:57:25 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-10-20 12:56:14 +0200 |
commit | d790d45567d81b97fdee87e154bd230b03a1a20a (patch) | |
tree | 2c70406b70516c0c02a876762aa0f5d3506de260 /apps/user_ldap/lib/Access.php | |
parent | 53b6d67bc19dfb75b6be64cae9ffeaf6fbfbdd6d (diff) | |
download | nextcloud-server-d790d45567d81b97fdee87e154bd230b03a1a20a.tar.gz nextcloud-server-d790d45567d81b97fdee87e154bd230b03a1a20a.zip |
Remove dead code in paged result handling
There is only one paged result API now that PHP 7.2 is long dead.
Starting by removing empty function calls.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap/lib/Access.php')
-rw-r--r-- | apps/user_ldap/lib/Access.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index cec192721a5..e56ceea4098 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -1996,12 +1996,9 @@ class Access extends LDAPUtility { //since offset = 0, this is a new search. We abandon other searches that might be ongoing. $this->abandonPagedSearch(); } - $pagedSearchOK = true === $this->invokeLDAPMethod( - 'controlPagedResult', $limit, false - ); - if ($pagedSearchOK) { - $this->logger->debug('Ready for a paged search', ['app' => 'user_ldap']); - } + $pagedSearchOK = true; + $this->invokeLDAPMethod('controlPagedResult', $limit, false); + $this->logger->debug('Ready for a paged search', ['app' => 'user_ldap']); /* ++ Fixing RHDS searches with pages with zero results ++ * We couldn't get paged searches working with our RHDS for login ($limit = 0), * due to pages with zero results. @@ -2016,8 +2013,8 @@ class Access extends LDAPUtility { // in case someone set it to 0 … use 500, otherwise no results will // be returned. $pageSize = (int)$this->connection->ldapPagingSize > 0 ? (int)$this->connection->ldapPagingSize : 500; - $pagedSearchOK = $this->invokeLDAPMethod('controlPagedResult', - $pageSize, false); + $pagedSearchOK = true; + $this->invokeLDAPMethod('controlPagedResult', $pageSize, false); } return $pagedSearchOK; |