Procházet zdrojové kódy

try to get connectiontest running

andre před 2 roky
rodič
revize
3972cd1f34
1 změnil soubory, kde provedl 8 přidání a 9 odebrání
  1. 8 9
      api/class/KerioApi.php

+ 8 - 9
api/class/KerioApi.php

@@ -286,15 +286,6 @@ class KerioApi implements KerioApiInterface {
 	 */
 	public function login($hostname, $username, $password) {
 		$this->clean();
-
-		logModuleCall(
-			'kerioEmail',
-			__FUNCTION__,
-			$username,
-			'Debug Kerio Api 1',
-			$this->application
-		);
-
 		if (empty($hostname)) {
 			throw new KerioApiException('Cannot login. Hostname not set.');
 		}
@@ -305,6 +296,14 @@ class KerioApi implements KerioApiInterface {
 			throw new KerioApiException('Cannot login. Application not defined.');
 		}
 
+		logModuleCall(
+			'kerioEmail',
+			__FUNCTION__,
+			$hostname,
+			'Debug Kerio Api 1',
+			$this->application
+		);
+
 		$this->setHostname($hostname);
 
 		$method = 'Session.login';