|
@@ -112,30 +112,16 @@ class EditAccountDataProvider extends BaseDataProvider
|
|
|
);
|
|
);
|
|
|
return ['error' => $error->getMessage()];
|
|
return ['error' => $error->getMessage()];
|
|
|
}
|
|
}
|
|
|
- try {
|
|
|
|
|
- $contact = $api->getContact($domainID);
|
|
|
|
|
- } catch (KerioApiException $error) {
|
|
|
|
|
- logModuleCall(
|
|
|
|
|
- 'kerioEmail',
|
|
|
|
|
- __FUNCTION__,
|
|
|
|
|
- $error,
|
|
|
|
|
- 'Debug Error',
|
|
|
|
|
- $error->getMessage()
|
|
|
|
|
- );
|
|
|
|
|
- return ['error' => $error->getMessage()];
|
|
|
|
|
- }
|
|
|
|
|
$api->logout();
|
|
$api->logout();
|
|
|
|
|
|
|
|
-
|
|
|
|
|
logModuleCall(
|
|
logModuleCall(
|
|
|
'kerioEmail',
|
|
'kerioEmail',
|
|
|
__FUNCTION__,
|
|
__FUNCTION__,
|
|
|
$account,
|
|
$account,
|
|
|
'Debug Error',
|
|
'Debug Error',
|
|
|
- $contact
|
|
|
|
|
|
|
+ $address
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
$this->data['id'] = $account['id'];
|
|
$this->data['id'] = $account['id'];
|
|
|
$this->data['username'] = $account['loginName'];
|
|
$this->data['username'] = $account['loginName'];
|
|
|
$this->data['domain'] = $this->getWhmcsParamByKey('customfields')['maildomain'];
|
|
$this->data['domain'] = $this->getWhmcsParamByKey('customfields')['maildomain'];
|