From d25e43a5f7bcae8813306f5df8025486a8a06556 Mon Sep 17 00:00:00 2001 From: Artyom Makarov Date: Tue, 23 Feb 2021 14:22:23 +0300 Subject: [PATCH] Feature: fix issue #67 (wsdl error: is not a supported type) --- src/nusoap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 src/nusoap.php diff --git a/src/nusoap.php b/src/nusoap.php old mode 100644 new mode 100755 index 01d251f..c041ee5 --- a/src/nusoap.php +++ b/src/nusoap.php @@ -4837,7 +4837,7 @@ function fetchWSDL($wsdl) $wsdlparts = parse_url($this->wsdl); // this is bogusly simple! foreach ($xs->imports as $ns2 => $list2) { for ($ii = 0; $ii < count($list2); $ii++) { - if (array_key_exists($ii, $list2) && !isset($list2[$ii]['loaded'])) { + if (array_key_exists($ii, $list2) && (!isset($list2[$ii]['loaded']) || !$list2[$ii]['loaded'])) { $this->schemas[$ns][$ns2]->imports[$ns2][$ii]['loaded'] = true; $url = $list2[$ii]['location']; if ($url != '') {