Explorar el Código

try new mailboxcheck

andre hace 5 años
padre
commit
4e6f221d9c
Se han modificado 1 ficheros con 10 adiciones y 3 borrados
  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';