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

Commit

Permalink
Merge pull request #75 from constantcontact/development
Browse files Browse the repository at this point in the history
Fix for exceptions
  • Loading branch information
WoogieNoogie committed Nov 18, 2014
2 parents 087a129 + 5f7c403 commit 1b8f6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ctct/Util/RestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1b8f6af

Please sign in to comment.