diff --git a/plugins/admin/fai/class_faiTemplateEntry.inc b/plugins/admin/fai/class_faiTemplateEntry.inc
index 9fec3e07b879fcd8ca7109f37a681acba53b1daa..35f8f71c3766423c131005736698553f54d23458 100644 (file)
{
plugin::plugin ($config, $dn);
- if($dn != "new"){
+ if((isset($object['cn'])) && (!empty($object['cn']))){
$this->orig_cn= $object['cn'];
$this->dn=$object['dn'];
foreach($object as $name=>$value){
}else{
$this->status = "new";
- $this->orig_cn = false;
+ $this->orig_cn= false;
}
$this->user = explode( '.', $this->FAIowner );
function execute()
{
- /* Call parent execute */
- plugin::execute();
+ /* Call parent execute */
+ plugin::execute();
/* Fill templating stuff */
$smarty = get_smarty();
}
}
- $display.= $smarty->fetch(get_template_path('faiTemplateEntry.tpl', TRUE));
+ $display.= "<h2><font color='red'>Fix / problen and ensure that size and content are correct if you download this template. Revision > 4582 (gosa-2.5 is already patched)</font></h2>".$smarty->fetch(get_template_path('faiTemplateEntry.tpl', TRUE));
return($display);
}