Code

Ensure that data is only send to the si server if the connection was established
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Sep 2008 11:36:59 +0000 (11:36 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Sep 2008 11:36:59 +0000 (11:36 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12446 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_gosaSupportDaemon.inc

index ae7feceed479d6ccac85ae24f16d8a4d8e3e5157..10027c5fe3d12100241ae8c36c6945f849904a00 100644 (file)
@@ -987,8 +987,13 @@ class gosaSupportDaemon
    */
   public function _send($data, $answer_expected= FALSE)
   {
-    $this->reset_error();
+
     $ret = array();
+    if(!$this->connect()){
+      return($ret);
+    }
+  
+    $this->reset_error();
 
     /******
       Debug handling