From 1e9e69cf9fcd35dd60c4dcd1f1473de0d41da7f0 Mon Sep 17 00:00:00 2001 From: guiguidoc Date: Tue, 11 Oct 2005 15:00:41 +0000 Subject: [PATCH] Add correct value for html_options git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1559 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/nagios/class_nagiosAccount.inc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/plugins/personal/nagios/class_nagiosAccount.inc b/plugins/personal/nagios/class_nagiosAccount.inc index 9b4cf0c54..6a7eb30ea 100644 --- a/plugins/personal/nagios/class_nagiosAccount.inc +++ b/plugins/personal/nagios/class_nagiosAccount.inc @@ -105,12 +105,12 @@ class nagiosAccount extends plugin $smarty->assign("$val", $this->$val); $smarty->assign("$val"."ACL", chkacl($this->acl, "$val")); } - $smarty->assign('ServiceNotificationOptionsValues',array("d,u,r,v" ,"d,u,r" ,"d,u")); - $smarty->assign('HostNotificationOptionsValues',array("w,u,c,r" ,"w,u,c" ,"c,w")); + $smarty->assign('ServiceNotificationOptionsValues',array("d,u,r,v"=>"d,u,r,v" ,"d,u,r"=>"d,u,r" ,"d,u"=>"d,u")); + $smarty->assign('HostNotificationOptionsValues',array("w,u,c,r"=>"w,u,c,r" ,"w,u,c"=>"w,u,c" ,"c,w"=>"c,w")); - $smarty->assign('ServiceNotificationPeriodValues',array("24x7" ,"24x5" ,"8x5")); - $smarty->assign('HostNotificationPeriodValues',array("24x7" ,"24x5" ,"8x5")); + $smarty->assign('ServiceNotificationPeriodValues',array("24x7"=>"24x7" ,"24x5"=>"24x5" ,"8x5"=>"8x5")); + $smarty->assign('HostNotificationPeriodValues',array("24x7"=>"24x7" ,"24x5"=>"24x5" ,"8x5"=>"8x5")); $display.= $smarty->fetch (get_template_path('nagios.tpl', TRUE, dirname(__FILE__))); return ($display); @@ -159,8 +159,7 @@ class nagiosAccount extends plugin } } - - /* Check formular input */ + function check() { $message= array(); @@ -184,7 +183,6 @@ class nagiosAccount extends plugin return($message); } - /* Save data to object */ function save_object() { @@ -194,7 +192,6 @@ class nagiosAccount extends plugin } } - /* remove object from parent */ function remove_from_parent() { /* Cancel if there's nothing to do here */ -- 2.30.2