From: hickert Date: Fri, 4 Apr 2008 06:49:45 +0000 (+0000) Subject: Updated sudo fixed, save. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dcbdc6439041f036c4b1275dde3d441c8bc8fcdc;p=gosa.git Updated sudo fixed, save. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10186 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 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; }