summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 28513f8)
raw | patch | inline | side by side (parent: 28513f8)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Feb 2008 08:54:28 +0000 (08:54 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Feb 2008 08:54:28 +0000 (08:54 +0000) |
-List entries again
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9151 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9151 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 7cf912d542908b76c47545a918e472d05bfa5d05..ac029ce9d2f38f5b9b99e11a9cc5b9be4c205012 100644 (file)
if(isset($entries['XML']) && is_array($entries['XML'])){
/* Check if returned values represent a valid answer */
- if($entries['XML']['HEADER'] == "answer"){
+ if(isset($entries['XML'])){
/* Unset header tags */
foreach(array("HEADER","SOURCE","TARGET") as $type){
$str = trim($this->o_sock->read());
$entries = $this->xml_to_array($str);
if(isset($entries['XML']) && is_array($entries['XML'])){
- $ret = $entries;
+ $ret = $entries;
+ if(isset($entries['XML']['ERROR_STRING'])) {
+ $this->set_error($entries['XML']['ERROR_STRING']);
+ }
}
}
}
/* Multiple targets? */
if (!is_array($to)){
- $to_targets= array($to);
+ $to_targets= array($to);
} else {
- $to_targets= $to;
+ $to_targets= $to;
}
/* Build target strings */
- foreach($to_target as $to){
- $target.= "<target>$to</target>";
+ $target ="";
+ foreach($to_targets as $to){
+ $target.= "<target>$to</target>";
}
return $d->_send("<xml><header>$header</header><source>GOSA</source>$target".$xml_message."</xml>",$answer_expected);