From: hickert Date: Tue, 2 Sep 2008 07:30:02 +0000 (+0000) Subject: Updated FAI template. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=068fc3dd51d52cf5b86ecf75db7b215cef15bf5d;p=gosa.git 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 --- 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]);