浏览代码

smaller fixes

andre 5 年之前
父节点
当前提交
d0791e369e
共有 1 个文件被更改,包括 1 次插入12 次删除
  1. 1 12
      zimbraSingle.php

+ 1 - 12
zimbraSingle.php

@@ -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();