|
|
@@ -116,6 +116,8 @@ function cwp7_CreateAccount($params) {
|
|
|
);
|
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
|
$response = $cwp7->createAccount($postvars);
|
|
|
+ }
|
|
|
+ if($response['status'] != 'OK') {
|
|
|
|
|
|
logModuleCall(
|
|
|
'cwp7',
|
|
|
@@ -125,9 +127,7 @@ function cwp7_CreateAccount($params) {
|
|
|
$response
|
|
|
);
|
|
|
|
|
|
- }
|
|
|
- if($response['status'] != 'OK') {
|
|
|
- return $result['msj'];
|
|
|
+ return 'Error: ' . $result['msj'];
|
|
|
}
|
|
|
return 'success';
|
|
|
}
|