diff --git a/Trustly/Api/api.php b/Trustly/Api/api.php index c9fee7d..e3336ff 100644 --- a/Trustly/Api/api.php +++ b/Trustly/Api/api.php @@ -313,7 +313,7 @@ public function post($url=NULL, $postdata=NULL) { curl_setopt($curl, CURLOPT_URL, $url); $body = curl_exec($curl); - if($body === FALSE) { + if(!is_string($body)) { $error = curl_error($curl); if($error === NULL) { $error = 'Failed to connect to the Trusly API';