1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Issue #2389 Possible fix for soap fatal error.

This commit is contained in:
Cameron
2017-02-07 08:15:40 -08:00
parent 67bec68ae8
commit c1930ab654

View File

@@ -612,9 +612,18 @@ class e_marketplace_adapter_wsdl extends e_marketplace_adapter_abstract
$auth = new stdClass; $auth = new stdClass;
$auth->authKey = $this->getAuthKey(); $auth->authKey = $this->getAuthKey();
$header = new SoapHeader('http://e107.org/services/auth', 'checkAuthHeader', $auth); $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 try
{ {
$this->client->__setSoapHeaders(array($header)); $this->client->__setSoapHeaders(array($header));
if(is_array($args) && $apply) if(is_array($args) && $apply)
{ {