Code

Updated ldap search
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Mar 2008 10:21:56 +0000 (10:21 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Mar 2008 10:21:56 +0000 (10:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9379 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_ldap.inc

index 51225d134b1e48bcf6782d59bceb0b658ec35fc7..f59c332cc425b66e5dffc8a5923d5952bd0dfc76 100644 (file)
@@ -206,7 +206,7 @@ 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))){