From: hickert Date: Thu, 6 Mar 2008 10:23:37 +0000 (+0000) Subject: Updated check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=255c664004a50b158aee379a82d7093676f1e3a4;p=gosa.git Updated check git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9380 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_ldap.inc b/include/class_ldap.inc index 6ca1b49c5..e1c38548b 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -195,11 +195,11 @@ class LDAP{ function checkResult() { /* Check if we have started a search before */ - if(is_resource(@ldap_first_entry($this->cid, $this->sr))){ + if($this->start != 0 && $this->re){ /* Check if there are still unfetched elements */ if(is_resource(@ldap_next_entry($this->cid, $this->re))){ - trigger_error("A new search was initiated while the an older search wasn't fetched completely."); + trigger_error("A new search was initiated while an older search wasn't fetched completely."); } } }