Browse Source

add ressources

andre 2 years ago
parent
commit
d7f4c2882a
1 changed files with 6 additions and 6 deletions
  1. 6 6
      api/class/KerioApi.php

+ 6 - 6
api/class/KerioApi.php

@@ -471,19 +471,19 @@ class KerioApi implements KerioApiInterface {
 		}
 		$json_request = json_encode($request);
 
-		/* Send data to server */
-		$json_response = $this->send('POST', $json_request);
-		/* Return */
-		$response = json_decode($json_response, TRUE);
-		
 		logModuleCall(
             'kerioEmail',
             __FUNCTION__,
             $json_request,
             'Debug Error',
-            $response
+            $params
         );
 
+		/* Send data to server */
+		$json_response = $this->send('POST', $json_request);
+		/* Return */
+		$response = json_decode($json_response, TRUE);
+		
 		return $response['result'];
 	}