Code

Fixed "LdapBase" missing message
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Feb 2006 15:32:15 +0000 (15:32 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Feb 2006 15:32:15 +0000 (15:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2729 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_config.inc

index b2125dbe51c974904bfa8a2ebfe839a0da7daf13..6169f48c108fedd27f88efbf1550343904173c45 100644 (file)
@@ -412,8 +412,10 @@ class config  {
        $ldap->cd ($this->current['BASE']);
        $ldap->search ("(objectClass=goLdapServer)");
        while ($attrs= $ldap->fetch()){
-               for ($i= 0; $i<$attrs["goLdapBase"]["count"]; $i++){
-                       $this->data['SERVERS']['LDAP'][]= $attrs["cn"][0].":".$attrs["goLdapBase"][$i];
+               if (isset($attrs["goLdapBase"])){
+                       for ($i= 0; $i<$attrs["goLdapBase"]["count"]; $i++){
+                               $this->data['SERVERS']['LDAP'][]= $attrs["cn"][0].":".$attrs["goLdapBase"][$i];
+                       }
                }
        }