Code

Added fall back to old style move method.
[gosa.git] / gosa-core / include / class_gosaSupportDaemon.inc
index c99444b1a536acb59460697f648cc20065e6541a..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);
   }