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();