From b3fb2ed291e8d09f281c4841ce27cf22453351ce Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 17 Mar 2008 06:47:39 +0000 Subject: [PATCH] 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 --- gosa-plugins/fai/admin/fai/class_faiHook.inc | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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; } } -- 2.30.2