From c1930ab654ea51b2cee328aec5aa273b56c988b3 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 7 Feb 2017 08:15:40 -0800 Subject: [PATCH] Issue #2389 Possible fix for soap fatal error. --- e107_handlers/e_marketplace.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/e107_handlers/e_marketplace.php b/e107_handlers/e_marketplace.php index c99ecbb44..be0a48466 100644 --- a/e107_handlers/e_marketplace.php +++ b/e107_handlers/e_marketplace.php @@ -612,9 +612,18 @@ class e_marketplace_adapter_wsdl extends e_marketplace_adapter_abstract $auth = new stdClass; $auth->authKey = $this->getAuthKey(); $header = new SoapHeader('http://e107.org/services/auth', 'checkAuthHeader', $auth); + + if(!is_object($this->client)) + { + $result['exception'] = array(); + $result['exception']['message'] = "Unable to connect at this time."; + return $result; + } try { + + $this->client->__setSoapHeaders(array($header)); if(is_array($args) && $apply) {