From: psc Date: Mon, 29 Jun 2009 13:10:43 +0000 (+0000) Subject: Limit scope of get_child_objects and some cosmetic X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eaff4ebdad126c27e2ceadc8180c7c415bcbc5a5;p=gosa.git Limit scope of get_child_objects and some cosmetic changes. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13820 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc b/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc index 2a1dfe0da..605acb8df 100644 --- a/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc +++ b/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc @@ -1303,7 +1303,7 @@ class FAI } } - /* Return a child objects, if there are any */ + /* Return child objects, if there are any */ static function get_child_objects($dn) { global $config; @@ -1312,10 +1312,9 @@ class FAI if (FAI::is_parent_object($Current_DN)){ $ldap = $config->get_ldap_link(); - $ldap->cd($config->current['BASE']); + $ldap->cd($dn); $ldap->search("(objectClass=FAIclass)",array("dn")); while($attrs = $ldap->fetch()){ - $newdn=$attrs['dn']; if(preg_match("/".preg_quote($Current_DN, '/')."/",$attrs['dn']) && $attrs['dn'] != $Current_DN){ $children[] = $attrs['dn']; }