Kaynağa Gözat

try to get connectiontest running

andre 2 yıl önce
ebeveyn
işleme
a66e3b4bde
1 değiştirilmiş dosya ile 9 ekleme ve 9 silme
  1. 9 9
      api/class/KerioApiSocket.php

+ 9 - 9
api/class/KerioApiSocket.php

@@ -156,16 +156,16 @@ class KerioApiSocket implements KerioApiSocketInterface {
 	 * @throws	KerioApiException
 	 */
 	public function send($data) {
-		if ($this->checkConnection()) {
 
-			logModuleCall(
-				'kerioEmail',
-				__FUNCTION__,
-				$data,
-				'Debug Kerio Api 1',
-				$this
-			);
-	
+		logModuleCall(
+			'kerioEmail',
+			__FUNCTION__,
+			$data,
+			'Debug Kerio Api 1',
+			$this
+		);
+
+	if ($this->checkConnection()) {
 			@fwrite($this->socketHandler, $data);
 			return $this->read();
 		}