summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 68721b4)
raw | patch | inline | side by side (parent: 68721b4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 4 Apr 2008 06:49:45 +0000 (06:49 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 4 Apr 2008 06:49:45 +0000 (06:49 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10186 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/sudo/class_sudoOptions.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/sudo/class_sudoOptions.inc b/gosa-core/plugins/admin/sudo/class_sudoOptions.inc
index 95bb1386857fd4204248cc2f2f4bc34f90e78b18..4b7c531da14795c1f99975ec5c612225ca015b22 100644 (file)
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;
}
}elseif($value == "TRUE"){
$option = $name;
}else{
- $option = $name."=".$value;
+ if(!empty($value)){
+ $option = $name."=".$value;
+ }else{
+ $option = $name;
+ }
if($neg){
$option = "!".$option;
}