Code

Updated check
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Mar 2008 10:23:37 +0000 (10:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Mar 2008 10:23:37 +0000 (10:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9380 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_ldap.inc

index 6ca1b49c58808a1e1ea00ba5516318969a396521..e1c38548b9cc607f827633671f2ce43f5c919352 100644 (file)
@@ -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.");
       }
     }
   }