summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6129f38)
raw | patch | inline | side by side (parent: 6129f38)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Feb 2006 15:32:15 +0000 (15:32 +0000) | ||
committer | cajus <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 | patch | blob | history |
index b2125dbe51c974904bfa8a2ebfe839a0da7daf13..6169f48c108fedd27f88efbf1550343904173c45 100644 (file)
--- a/include/class_config.inc
+++ b/include/class_config.inc
$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];
+ }
}
}