diff --git a/build/ZabbixApiAbstract.class.php b/build/ZabbixApiAbstract.class.php index b556b68..bdff986 100644 --- a/build/ZabbixApiAbstract.class.php +++ b/build/ZabbixApiAbstract.class.php @@ -153,12 +153,12 @@ public function __construct($apiUrl='', $user='', $password='', $httpUser='', $h if ($httpUser && $httpPassword) $this->setBasicAuthorization($httpUser, $httpPassword); + $this->setVerifyPeer($verifyPeer); + if ($authId) $this->setAuthId($authId); elseif($user && $password) $this->userLogin(array('user' => $user, 'password' => $password)); - - $this->setVerifyPeer($verifyPeer); } /**