Skip to content

Commit

Permalink
simpler fix for #37
Browse files Browse the repository at this point in the history
  • Loading branch information
twisted1919 committed Apr 5, 2021
1 parent 37ddf15 commit 37444bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MailWizzApi/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ public function send()
}

$ch = curl_init($requestUrl);
if (!is_resource($ch)) {
throw new Exception('Cannot initialize curl!');
}
if ($ch === false) {
throw new Exception('Cannot initialize curl!');
}

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $client->timeout);
Expand Down

0 comments on commit 37444bb

Please sign in to comment.