|
|
@@ -48,7 +48,7 @@ class AccountDataProvider extends BaseDataProvider
|
|
|
try {
|
|
|
$api->login($this->getWhmcsParamByKey('serverhostname'), $this->getWhmcsParamByKey('serverusername'), $this->getWhmcsParamByKey('serverpassword'));
|
|
|
$domainID = $api->getDomainId($maildomain);
|
|
|
- } catch (KerioApiException $error) {
|
|
|
+ } catch (\Exception $error) {
|
|
|
logModuleCall(
|
|
|
'kerioEmail',
|
|
|
__FUNCTION__,
|
|
|
@@ -64,7 +64,7 @@ class AccountDataProvider extends BaseDataProvider
|
|
|
$active = $this->formData['status'] === 'active' ? TRUE : FALSE;
|
|
|
try {
|
|
|
$userID = $api->createUser($domainID, $this->formData['username'], $this->formData['password'], $active)['result'][0]['id'];
|
|
|
- } catch (Exception $error) {
|
|
|
+ } catch (\Exception $error) {
|
|
|
logModuleCall(
|
|
|
'kerioEmail',
|
|
|
__FUNCTION__,
|