summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e3f05dd)
raw | patch | inline | side by side (parent: e3f05dd)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Feb 2008 11:16:57 +0000 (11:16 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Feb 2008 11:16:57 +0000 (11:16 +0000) |
-Display error messages, when update failed.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9170 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9170 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 d3ba4ac8ce4502978f720f4417d7e2eb00000f99..80b214451c10f58d05de6984df66e304e9b856ed 100644 (file)
".$attr."
</update>
</xml>";
+
if($this->connect()){
$this->o_sock->write($xml_msg);
$str = trim($this->o_sock->read());
$entries = $this->xml_to_array($str);
if(isset($entries['XML'])){
+ if(isset($entries['XML']['ERROR_STRING'])) {
+ $this->set_error($entries['XML']['ERROR_STRING']);
+ return(FALSE);
+ }
return(TRUE);
}
}