Browse Source

try to get connectiontest running

andre 2 years ago
parent
commit
dffb7df71b
1 changed files with 1 additions and 2 deletions
  1. 1 2
      api/class/KerioApi.php

+ 1 - 2
api/class/KerioApi.php

@@ -295,6 +295,7 @@ class KerioApi implements KerioApiInterface {
 		elseif (empty($this->application)) {
 			throw new KerioApiException('Cannot login. Application not defined.');
 		}
+		$this->setHostname($hostname);
 
 		logModuleCall(
 			'kerioEmail',
@@ -304,8 +305,6 @@ class KerioApi implements KerioApiInterface {
 			$this->application
 		);
 
-		$this->setHostname($hostname);
-
 		$method = 'Session.login';
 		$params = array(
 			'userName'		=> $username,