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

Commit 26cf5f9

Browse files
Merge pull request #45 from steven-hadfield/Dot9
Fix ET_Client::__construct incorrectly checking the response object
2 parents 913be64 + a3201c9 commit 26cf5f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ET_Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function __construct($getWSDL = false, $debug = false, $params = null) {
5858
$url = "https://www.exacttargetapis.com/platform/v1/endpoints/soap?access_token=".$this->getAuthToken($this->tenantKey);
5959
$endpointResponse = restGet($url);
6060
$endpointObject = json_decode($endpointResponse->body);
61-
if ($endpointResponse && property_exists($endpointObject,"url")){
61+
if ($endpointObject && property_exists($endpointObject,"url")){
6262
$this->endpoint = $endpointObject->url;
6363
} else {
6464
throw new Exception('Unable to determine stack using /platform/v1/endpoints/:'.$endpointResponse->body);

0 commit comments

Comments
 (0)