From dcbdc6439041f036c4b1275dde3d441c8bc8fcdc Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 4 Apr 2008 06:49:45 +0000 Subject: [PATCH] Updated sudo fixed, save. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10186 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/admin/sudo/class_sudoOptions.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/gosa-core/plugins/admin/sudo/class_sudoOptions.inc b/gosa-core/plugins/admin/sudo/class_sudoOptions.inc index 95bb13868..4b7c531da 100644 --- a/gosa-core/plugins/admin/sudo/class_sudoOptions.inc +++ b/gosa-core/plugins/admin/sudo/class_sudoOptions.inc @@ -412,7 +412,11 @@ class sudoOption extends plugin Save STRING / INTEGER ****/ if(in_array($type,array("STRING","INTEGER"))){ - $option = $name."=".$value; + if(!empty($value)){ + $option = $name."=".$value; + }else{ + $option = $name; + } if($neg){ $option = "!".$option; } @@ -427,7 +431,11 @@ class sudoOption extends plugin }elseif($value == "TRUE"){ $option = $name; }else{ - $option = $name."=".$value; + if(!empty($value)){ + $option = $name."=".$value; + }else{ + $option = $name; + } if($neg){ $option = "!".$option; } -- 2.30.2