Code

Added fall back to old style move method.
[gosa.git] / gosa-core / include / class_gosaSupportDaemon.inc
index b1c52777522a175ce6e055903d0aad16219a1bb8..fcccd5843bb22ea457bd8fca0aeb3de6e6b6b18b 100644 (file)
@@ -129,8 +129,16 @@ class gosaSupportDaemon
   public function get_error()
   {
     $str = $this->s_error;
-    $str = preg_replace("/ /"," ",$str);
-    return($str);
+    $ret = "";
+    if(is_string($str)){
+      $ret = $str;
+    }else{
+      foreach($str as $msg){
+        $ret .= $msg." ";
+      }
+    }
+    $ret = preg_replace("/ /"," ",$ret);
+    return($ret);
   }
 
 
@@ -869,6 +877,7 @@ class gosaSupportDaemon
 
     $attr = "";
     foreach($data as $key => $value){
+      $key = strtolower($key);
       if(is_array($value)){
         foreach($value as $sub_value){
           $attr.= "<$key>".strtolower($sub_value)."</$key>\n";
@@ -1318,6 +1327,7 @@ class gosaSupportDaemon
         trigger_error("Invalid configuration attribute given '".$key."=".$value."'.");
         return($ret);
       }
+      $key = strtolower($key);
       if(is_array($value)){
         foreach($value as $val){
           $attrs.= "<$key>$val</$key>\n";
@@ -1376,6 +1386,7 @@ class gosaSupportDaemon
         trigger_error("Invalid configuration attribute given '".$key."=".$value."'.");
         return($ret);
       }
+      $key = strtolower($key);
       if(is_array($value)){
         foreach($value as $val){
           $attrs.= "<$key>$val</$key>\n";
@@ -1569,6 +1580,7 @@ class gosaSupportDaemon
         trigger_error("Invalid policy configuration attribute given '".$id."=".$value."'.");
         return($ret);
       }
+      $id = strtolower($id);
       $attrs.= "<$id>$value</$id>\n";
     }
 
@@ -1624,6 +1636,7 @@ class gosaSupportDaemon
         trigger_error("Invalid policy configuration attribute given '".$id."=".$value."'.");
         return($ret);
       }
+      $id = strtolower($id);
       $attrs.= "<$id>$value</$id>\n";
     }