summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1321cee)
raw | patch | inline | side by side (parent: 1321cee)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 14 Sep 2009 12:24:08 +0000 (12:24 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 14 Sep 2009 12:24:08 +0000 (12:24 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14250 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 7f21eed9245f1a63705786425590700df9426da2..90005169ae154e59a32420d38fb540a514b7f505 100644 (file)
foreach($data as $key => $value){
$key = strtolower($key);
if(is_array($value)){
- foreach($value as $sub_value){
- $attr.= "<$key>".strtolower($sub_value)."</$key>\n";
+ 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>";
+ }
}
}else{
$attr.= "<$key>".strtolower($value)."</$key>\n";