Skip to content

Commit

Permalink
Feature: fix issue #67 (wsdl error: is not a supported type)
Browse files Browse the repository at this point in the history
  • Loading branch information
McArrow authored and f3l1x committed Mar 12, 2021
1 parent 2e00c78 commit d25e43a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nusoap.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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 != '') {
Expand Down

0 comments on commit d25e43a

Please sign in to comment.