diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc
index 741598ef31f2406509cc2f7c07e19c90b0140fb7..fcccd5843bb22ea457bd8fca0aeb3de6e6b6b18b 100644 (file)
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);
}
$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";
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";
trigger_error("Invalid policy configuration attribute given '".$id."=".$value."'.");
return($ret);
}
+ $id = strtolower($id);
$attrs.= "<$id>$value</$id>\n";
}
trigger_error("Invalid policy configuration attribute given '".$id."=".$value."'.");
return($ret);
}
+ $id = strtolower($id);
$attrs.= "<$id>$value</$id>\n";
}