@@ -257,10 +257,9 @@ class Zm_Account
catch (SoapFault $exception)
{
$result = $exception;
- return 'blubb';
}
- return 'bla';
+ return (!is_a($result, "Exception"));
/**
@@ -516,14 +516,14 @@ function zimbraSingle_CreateAccount($params)
);
return false;
- if($accountExists == 'bla') {
- logModuleCall(
- 'zimbrasingle',
- __FUNCTION__,
- $account_name,
- "Debug",
- $accountExists
- );
+ logModuleCall(
+ 'zimbrasingle',
+ __FUNCTION__,
+ $account_name,
+ "Debug",
+ $accountExists
+ );
+ if($accountExists) {
return 'Account already exist';
$attrs = array();