Skip to content

Commit

Permalink
Solve ambiguous check
Browse files Browse the repository at this point in the history
  • Loading branch information
dotzero committed Jun 2, 2016
1 parent 13c876c commit efb5ac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HttpAdapter/CurlAdapter.php
Expand Up @@ -156,12 +156,12 @@ protected function request($url, $method, array $params = [])
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($this->curl, CURLOPT_CONNECTTIMEOUT, $this->connectionTimeout);

if ($this->client && $this->token) {
if ($this->client !== null && $this->token !== null) {
curl_setopt($this->curl, CURLOPT_HTTPHEADER, [
'client: ' . $this->client,
'token: ' . $this->token
]);
} elseif ($this->apikey) {
} elseif ($this->apikey !== null) {
curl_setopt($this->curl, CURLOPT_HTTPHEADER, [
'apikey: ' . $this->apikey,
]);
Expand Down

0 comments on commit efb5ac5

Please sign in to comment.