From: cajus Date: Wed, 22 Feb 2006 15:32:15 +0000 (+0000) Subject: Fixed "LdapBase" missing message X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=07ee1ad3a15d431ed67e95e57f67438a6358b3de;p=gosa.git Fixed "LdapBase" missing message git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2729 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_config.inc b/include/class_config.inc index b2125dbe5..6169f48c1 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -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]; + } } }