From 2b9696efaea3029cfb20a6d9c931901e8aeaaef1 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 30 Sep 2014 13:13:52 +0200 Subject: [PATCH] abandond paged search only if PHP supports them --- 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 760d23bf44..50874ae7a1 100644 --- a/apps/user_ldap/lib/access.php +++ b/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();