|
|
@@ -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("→ Raw request:\n<pre>%s</pre>", $request));
|