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:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user