From: hickert Date: Mon, 17 Mar 2008 06:47:39 +0000 (+0000) Subject: Fixed FAI Hooks. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b3fb2ed291e8d09f281c4841ce27cf22453351ce;p=gosa.git Fixed FAI Hooks. -Apply resulted in an empty object list. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9886 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiHook.inc b/gosa-plugins/fai/admin/fai/class_faiHook.inc index c5e8c47dc..c0aeae24f 100644 --- a/gosa-plugins/fai/admin/fai/class_faiHook.inc +++ b/gosa-plugins/fai/admin/fai/class_faiHook.inc @@ -486,18 +486,7 @@ class faiHook extends plugin /* We do not need to save untouched objects */ foreach($this->SubObjects as $name => $obj){ - if($obj['status'] == "FreshLoaded"){ - unset($this->SubObjects[$name]); - } - } - - foreach($this->SubObjects as $name => $obj){ - if($obj['status'] == "delete"){ - $Objects[$name] = $obj; - } - } - foreach($this->SubObjects as $name => $obj){ - if($obj['status'] != "delete"){ + if($obj['status'] != "FreshLoaded"){ $Objects[$name] = $obj; } }