Code

Updated goto masses handling.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 2 Sep 2009 09:14:04 +0000 (09:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 2 Sep 2009 09:14:04 +0000 (09:14 +0000)
-Fixed send method to respect periodical tag.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14190 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_gosaSupportDaemon.inc

index 05817d193f7d32b2c8cc65a523ee8e718c386ee6..7f21eed9245f1a63705786425590700df9426da2 100644 (file)
@@ -935,8 +935,15 @@ class gosaSupportDaemon
     /* Prepare data */
     foreach ($data as $key => $value){
       if(is_array($value)){
-        foreach($value as $sub_value){
-          $xml_message.= "<$key>$sub_value</$key>";
+        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>";
+          }
         }
       }else{
         $xml_message.= "<$key>$value</$key>";