From 90ad3ead4e13ad8afae7f7273c09b49bfdb2c298 Mon Sep 17 00:00:00 2001 From: pbarroca <pbarroca@afi-sa.fr> Date: Wed, 22 Oct 2014 19:00:31 +0200 Subject: [PATCH] rel #17017 : MappedSoapClient guard on types --- library/Class/WebService/MappedSoapClient.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/Class/WebService/MappedSoapClient.php b/library/Class/WebService/MappedSoapClient.php index 264eb0a5a89..59f45933dd7 100644 --- a/library/Class/WebService/MappedSoapClient.php +++ b/library/Class/WebService/MappedSoapClient.php @@ -47,6 +47,9 @@ class Class_WebService_MappedSoapClient extends SoapClient { protected function __getWSDLStructTypes() { + if (!$this->__getTypes()) + return []; + $types = []; foreach($this->__getTypes() as $type) { preg_match('/([a-z0-9_]+)\s+([a-z0-9_]+(\[\])?)(.*)?/si', $type, $matches); -- GitLab