summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 88d5eeb)
raw | patch | inline | side by side (parent: 88d5eeb)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 17 Sep 2009 08:20:40 +0000 (08:20 +0000) | ||
committer | hickert <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 | patch | blob | history |
diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc
index 90005169ae154e59a32420d38fb540a514b7f505..05817d193f7d32b2c8cc65a523ee8e718c386ee6 100644 (file)
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";
/* 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>";