Code

Updated sudo fixed, save.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Apr 2008 06:49:45 +0000 (06:49 +0000)
committerhickert <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

index 95bb1386857fd4204248cc2f2f4bc34f90e78b18..4b7c531da14795c1f99975ec5c612225ca015b22 100644 (file)
@@ -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;
           }