Code

Updated gosa support daemon
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Feb 2008 11:16:57 +0000 (11:16 +0000)
committerhickert <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

gosa-core/include/class_gosaSupportDaemon.inc

index d3ba4ac8ce4502978f720f4417d7e2eb00000f99..80b214451c10f58d05de6984df66e304e9b856ed 100644 (file)
@@ -536,11 +536,16 @@ $xml_msg.= "
       ".$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);
       }
     }