Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #45 from steven-hadfield/Dot9
Browse files Browse the repository at this point in the history
Fix ET_Client::__construct incorrectly checking the response object
  • Loading branch information
MichaelAllenClark committed Jan 29, 2015
2 parents 913be64 + a3201c9 commit 26cf5f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ET_Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function __construct($getWSDL = false, $debug = false, $params = null) {
$url = "https://www.exacttargetapis.com/platform/v1/endpoints/soap?access_token=".$this->getAuthToken($this->tenantKey);
$endpointResponse = restGet($url);
$endpointObject = json_decode($endpointResponse->body);
if ($endpointResponse && property_exists($endpointObject,"url")){
if ($endpointObject && property_exists($endpointObject,"url")){
$this->endpoint = $endpointObject->url;
} else {
throw new Exception('Unable to determine stack using /platform/v1/endpoints/:'.$endpointResponse->body);
Expand Down

0 comments on commit 26cf5f9

Please sign in to comment.