Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

Commit 1b8f6af

Browse files
committed
Merge pull request #75 from constantcontact/development
Fix for exceptions
2 parents 087a129 + 5f7c403 commit 1b8f6af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ctct/Util/RestClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private static function httpRequest($url, $method, array $headers = array(), $da
9090

9191
// check if any errors were returned
9292
$body = json_decode($response->body, true);
93-
if ((isset($body[0]) && array_key_exists('error_key', $body[0])) || ($response->error !== false)) {
93+
if (isset($body[0]) && array_key_exists('error_key', $body[0])) {
9494
$ex = new CtctException($response->body);
9595
$ex->setCurlInfo($response->info);
9696
$ex->setErrors($body);

0 commit comments

Comments
 (0)