diff --git a/src/Ctct/Util/RestClient.php b/src/Ctct/Util/RestClient.php index 40cd714..78aba1c 100755 --- a/src/Ctct/Util/RestClient.php +++ b/src/Ctct/Util/RestClient.php @@ -90,7 +90,7 @@ private static function httpRequest($url, $method, array $headers = array(), $da // check if any errors were returned $body = json_decode($response->body, true); - if ((isset($body[0]) && array_key_exists('error_key', $body[0])) || ($response->error !== false)) { + if (isset($body[0]) && array_key_exists('error_key', $body[0])) { $ex = new CtctException($response->body); $ex->setCurlInfo($response->info); $ex->setErrors($body);