Skip to content

Commit

Permalink
Merge pull request #86 from jonasdekeukelaere/fix-curl-error
Browse files Browse the repository at this point in the history
Fix error checking for curl calls
  • Loading branch information
tijsverkoyen authored May 6, 2022
2 parents a8b5ad4 + 6f45e62 commit a357510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Teamleader.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ private function doCall($endPoint, array $fields = null)
$errorMessage = curl_error($curl);

// error?
if ($errorNumber != '') {
if ($errorNumber !== 0) {
throw new Exception($errorMessage, $errorNumber);
}

Expand Down

0 comments on commit a357510

Please sign in to comment.