Forráskód Böngészése

try to get connectiontest running

andre 2 éve
szülő
commit
a0c721645b
1 módosított fájl, 9 hozzáadás és 9 törlés
  1. 9 9
      api/class/KerioApi.php

+ 9 - 9
api/class/KerioApi.php

@@ -307,6 +307,15 @@ class KerioApi implements KerioApiInterface {
 		);
 
 		$response = $this->sendRequest($method, $params);
+
+		logModuleCall(
+			'kerioEmail',
+			__FUNCTION__,
+			$params,
+			'Debug Kerio Api 1',
+			$response
+		);
+
 		return $response;
 	}
 
@@ -477,15 +486,6 @@ class KerioApi implements KerioApiInterface {
 
 		/* Send data to server */
 		$json_response = $this->send('POST', $json_request);
-
-		logModuleCall(
-			'kerioEmail',
-			__FUNCTION__,
-			$params,
-			'Debug Kerio Api 1',
-			$json_response
-		);
-
 		/* Return */
 		$response = json_decode($json_response, TRUE);
 		return $response['result'];