|
|
@@ -505,18 +505,7 @@ function zimbraSingle_CreateAccount($params)
|
|
|
return $login->getMessage();
|
|
|
}
|
|
|
$apiAccountManager = new Zm_Account($api);
|
|
|
- $accountExists = $apiAccountManager->accountExists($account_name);
|
|
|
- if(is_a($accountExists, "Exception")) {
|
|
|
- logModuleCall(
|
|
|
- 'zimbrasingle',
|
|
|
- __FUNCTION__,
|
|
|
- $params,
|
|
|
- "Error: could not check account availibility",
|
|
|
- $account_name
|
|
|
- );
|
|
|
- return false;
|
|
|
- }
|
|
|
- if($accountExists === true) {
|
|
|
+ if($apiAccountManager->accountExists($account_name)) {
|
|
|
return 'Account already exist';
|
|
|
}
|
|
|
$attrs = array();
|