Эх сурвалжийг харах

try to get connectiontest running

andre 2 жил өмнө
parent
commit
4bf79ddda0

+ 3 - 3
api/class/KerioApiSocket.php

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