Sfoglia il codice sorgente

Merge branch 'debug' of andre/whmcsCWP into master

andre 2 anni fa
parent
commit
3cd5206fca
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. 8 1
      cwp7.php

+ 8 - 1
cwp7.php

@@ -62,9 +62,16 @@ function cwp7_Testconnection($params) {
 			'error' => '',
 		);
 	}
+	logModuleCall(
+		'cwp7',
+		__FUNCTION__,
+		$params,
+		'debug',
+		$response
+	);
 	return array(
         'success' => false,
-        'error' => $response['error_msg'],
+        'error' => $response['error_msg'] ? $response['error_msg'] : $response['msj'],
     );
 }