From: hickert Date: Fri, 4 Apr 2008 06:28:52 +0000 (+0000) Subject: Update sudo option add X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e3df88f201c7cc4942f322b45ae9603b63704e3a;p=gosa.git Update sudo option add git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10184 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/sudo/class_sudoOptions.inc b/gosa-core/plugins/admin/sudo/class_sudoOptions.inc index 43a39b140..7cb9fbebb 100644 --- a/gosa-core/plugins/admin/sudo/class_sudoOptions.inc +++ b/gosa-core/plugins/admin/sudo/class_sudoOptions.inc @@ -306,9 +306,7 @@ class sudoOption extends plugin }else{ $this->sudoOption[$opt] = $option; } - } - - if(isset($this->options[$opt]) && isset($this->sudoOption[$opt]) && $this->options[$opt]['TYPE'] == "LISTS"){ + }elseif(isset($this->options[$opt]) && isset($this->sudoOption[$opt]) && $this->options[$opt]['TYPE'] == "LISTS"){ $type = $this->options[$opt]['TYPE']; $val = array($this->options[$opt]['DEFAULT']); $option = array("NAME" => $opt, "VALUE" => $val , "NEGATE" => FALSE); diff --git a/gosa-core/plugins/admin/sudo/tabs_sudo.inc b/gosa-core/plugins/admin/sudo/tabs_sudo.inc index a1265c491..0e0c1267c 100644 --- a/gosa-core/plugins/admin/sudo/tabs_sudo.inc +++ b/gosa-core/plugins/admin/sudo/tabs_sudo.inc @@ -28,11 +28,6 @@ class sudotabs extends tabs $this->addSpecialTabs(); } - function save_object($save_current= FALSE) - { - tabs::save_object($save_current); - } - function save($ignore_account= FALSE) { $baseobject= $this->by_object['sudo'];