Skip to content

Commit

Permalink
fix for issue #15 / verifyPeer() before login
Browse files Browse the repository at this point in the history
  • Loading branch information
domibarton committed Oct 13, 2015
1 parent 8ec1105 commit dbb96e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/ZabbixApiAbstract.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit dbb96e2

Please sign in to comment.