From: hickert Date: Fri, 12 Sep 2008 11:36:59 +0000 (+0000) Subject: Ensure that data is only send to the si server if the connection was established X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9b3e9ec4ee6f0b96deace5f84c19f18331daafdf;p=gosa.git Ensure that data is only send to the si server if the connection was established git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12446 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index ae7feceed..10027c5fe 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -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