From b9320fa3370738fd977c702c3af259e5a7fb1ed4 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 18 Jul 2008 12:41:46 +0000 Subject: [PATCH] Fixed error in FAI script git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11716 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../fai/admin/fai/class_faiScript.inc | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiScript.inc b/gosa-plugins/fai/admin/fai/class_faiScript.inc index 35151bd13..a88e5d47b 100644 --- a/gosa-plugins/fai/admin/fai/class_faiScript.inc +++ b/gosa-plugins/fai/admin/fai/class_faiScript.inc @@ -591,19 +591,18 @@ class faiScript extends plugin /* Read all leaf objects of this object (For FAIscript this would be FAIscriptEntry) */ - $res = FAI::get_all_objects_for_given_base($this->dn,"(&(objectClass=FAIclass)(objectClass=".$this->subClass."))"); - foreach($res as $obj){ - - /* Skip not relevant objects */ - if(!preg_match("/".normalizePreg($this->dn)."$/i",$obj['dn'])) continue; - - $objects = array(); - $objects['status'] = "edited"; - $objects['dn'] = $obj['dn']; - $objects = $this->get_object_attributes($objects,$this->subAttributes); - $objects = $this->get_object_attributes($objects,$this->sub_Load_Later); - $this->SubObjects[$objects['cn']] = $objects; - } + $res = FAI::get_all_objects_for_given_base($this->dn,"(&(objectClass=FAIclass)(objectClass=".$this->subClass."))"); + foreach($res as $obj){ + + /* Skip not relevant objects */ + if(!preg_match("/".normalizePreg($this->dn)."$/i",$obj['dn'])) continue; + + $objects = array(); + $objects['status'] = "edited"; + $objects['dn'] = $obj['dn']; + $objects = $this->get_object_attributes($objects,$this->subAttributes); + $objects = $this->get_object_attributes($objects,$this->sub_Load_Later); + $this->SubObjects[$objects['cn']] = $objects; } } -- 2.30.2