Explorar el Código

try to get connectiontest running

andre hace 2 años
padre
commit
48b2c533e5
Se han modificado 1 ficheros con 8 adiciones y 9 borrados
  1. 8 9
      api/class/KerioApi.php

+ 8 - 9
api/class/KerioApi.php

@@ -474,15 +474,6 @@ class KerioApi implements KerioApiInterface {
 		/* Send data to server */
 		$json_response = $this->send('POST', $json_request);
 		/* Return */
-
-		logModuleCall(
-			'kerioEmail',
-			__FUNCTION__,
-			$json_request,
-			'Debug Kerio Api 1',
-			$json_response
-		);
-
 		$response = json_decode($json_response, TRUE);
 		return $response['result'];
 	}
@@ -510,6 +501,14 @@ class KerioApi implements KerioApiInterface {
 			throw new KerioApiException('Cannot send data before login.');
 		}
 
+		logModuleCall(
+			'kerioEmail',
+			__FUNCTION__,
+			$method,
+			'Debug Kerio Api 1',
+			$data
+		);
+
 		/* Get full HTTP request */
 		$request = $this->getHttpRequest($method, $data);
 		$this->debug(sprintf("&rarr; Raw request:\n<pre>%s</pre>", $request));