Просмотр исходного кода

try to get connectiontest running

andre 2 лет назад
Родитель
Сommit
3972cd1f34
1 измененных файлов с 8 добавлено и 9 удалено
  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';