From 07ee1ad3a15d431ed67e95e57f67438a6358b3de Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 22 Feb 2006 15:32:15 +0000 Subject: [PATCH] Fixed "LdapBase" missing message git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2729 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_config.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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]; + } } } -- 2.30.2