Code

Reverted "periodical" changes in Daemon Handler
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Sep 2009 08:20:40 +0000 (08:20 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Sep 2009 08:20:40 +0000 (08:20 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14263 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_gosaSupportDaemon.inc

index 90005169ae154e59a32420d38fb540a514b7f505..05817d193f7d32b2c8cc65a523ee8e718c386ee6 100644 (file)
@@ -842,15 +842,8 @@ class gosaSupportDaemon
     foreach($data as $key => $value){
       $key = strtolower($key);
       if(is_array($value)){
-        if($key == "periodic"){
-          foreach($value as $sub_name => $sub_value){
-            $attr.= "<periodic>$sub_name</periodic>";
-            $attr.= "<$sub_name>$sub_value</$sub_name>";
-          }
-        }else{
-          foreach($value as $sub_value){
-            $attr.= "<$key>".strtolower($sub_value)."</$key>";
-          }
+        foreach($value as $sub_value){
+          $attr.= "<$key>".strtolower($sub_value)."</$key>\n";
         }
       }else{
         $attr.= "<$key>".strtolower($value)."</$key>\n";
@@ -942,15 +935,8 @@ class gosaSupportDaemon
     /* Prepare data */
     foreach ($data as $key => $value){
       if(is_array($value)){
-        if($key == "periodic"){
-          foreach($value as $sub_name => $sub_value){
-            $xml_message.= "<periodic>$sub_name</periodic>";
-            $xml_message.= "<$sub_name>$sub_value</$sub_name>";
-          }
-        }else{
-          foreach($value as $sub_value){
-            $xml_message.= "<$key>$sub_value</$key>";
-          }
+        foreach($value as $sub_value){
+          $xml_message.= "<$key>$sub_value</$key>";
         }
       }else{
         $xml_message.= "<$key>$value</$key>";