From 068fc3dd51d52cf5b86ecf75db7b215cef15bf5d Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 2 Sep 2008 07:30:02 +0000 Subject: [PATCH] Updated FAI template. -If a template entry was removed, some php warnings were shown. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12337 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_faiTemplate.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiTemplate.inc b/gosa-plugins/fai/admin/fai/class_faiTemplate.inc index 7b5b94890..e1286d282 100644 --- a/gosa-plugins/fai/admin/fai/class_faiTemplate.inc +++ b/gosa-plugins/fai/admin/fai/class_faiTemplate.inc @@ -472,7 +472,7 @@ class faiTemplate extends plugin $tmp = array(); $attributes = array_merge($this->sub_Load_Later,$this->subAttributes); foreach($attributes as $attrs){ - if($obj[$attrs] == ""){ + if(!isset($obj[$attrs]) || $obj[$attrs] == ""){ $obj[$attrs] = array(); } $tmp[$attrs] =($obj[$attrs]); -- 2.30.2