|
|
@@ -226,8 +226,8 @@ class EditAccountDataProvider extends BaseDataProvider
|
|
|
$productManager = new ProductManager();
|
|
|
$productManager->loadByHostingId($hid);
|
|
|
|
|
|
- $api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
|
|
|
$status['isEnabled'] = $this->formData['status'] === 'active' ? TRUE : FALSE;
|
|
|
+ $api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
|
|
|
try {
|
|
|
$result = $api->modifyUser($this->formData['id'], $status);
|
|
|
} catch (KerioApiException $error) {
|