Kaynağa Gözat

try new mailboxcheck

andre 5 yıl önce
ebeveyn
işleme
4e6f221d9c
1 değiştirilmiş dosya ile 10 ekleme ve 3 silme
  1. 10 3
      zimbraAddressAvailable.php

+ 10 - 3
zimbraAddressAvailable.php

@@ -42,14 +42,21 @@ if(is_a($login, "Exception")) {
 	logModuleCall(
 		'zimbrasingle',
 		__FUNCTION__,
-		$serverIDObj,
+		$accessData,
 		"Error : cannot login to " . $accessData['zimbraServer'],
-		$packageID
+		$login->getMessage()
 	);
 	exit();
 } else {
+	logModuleCall(
+		'zimbrasingle',
+		__FUNCTION__,
+		$accessData,
+		"Debug",
+		$account_name
+	);
 	$apiAccountManager = new Zm_Account($api);
-		if( $apiAccountManager->accountExists($account_name)) {
+	if( $apiAccountManager->accountExists($account_name)) {
 		echo 'no';
 	} else {
 		echo 'yes';