From 9b3e9ec4ee6f0b96deace5f84c19f18331daafdf Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 12 Sep 2008 11:36:59 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_gosaSupportDaemon.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.30.2