abandond paged search only if PHP supports them

remotes/origin/fix-10825
Arthur Schiwon 11 years ago
parent 53ec32807a
commit 2b9696efae
  1. 2
      apps/user_ldap/lib/access.php

@ -1376,7 +1376,7 @@ class Access extends LDAPUtility implements user\IUserTools {
* resets a running Paged Search operation
*/
private function abandonPagedSearch() {
if(!empty($this->lastCookie)) {
if($this->connection->hasPagedResultSupport) {
$cr = $this->connection->getConnectionResource();
$this->ldap->controlPagedResult($cr, 0, false, $this->lastCookie);
$this->getPagedSearchResultState();

Loading…
Cancel
Save