abandond paged search only if PHP supports them

This commit is contained in:
Arthur Schiwon 2014-09-30 13:13:52 +02:00
parent 53ec32807a
commit 2b9696efae
1 changed files with 1 additions and 1 deletions

View File

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