Skip to content

Commit

Permalink
Fixed a bug that occurred when web services were enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Mar 8, 2021
1 parent 8cf296a commit e6a1e1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/lib-webservices.php
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ function WS_xmlToArgs(&$args)
if ($node->nodeType == XML_ELEMENT_NODE) {
$child_nodes = $node->childNodes;
if ($child_nodes == null) {
continue;
continue 2;
}
$args[$node->localName] = array();
for ($i = 0; $i < $child_nodes->length; $i++) {
Expand All @@ -585,7 +585,7 @@ function WS_xmlToArgs(&$args)
= $child_node->firstChild->nodeValue;
break;
}
}
}
}
}
break;
Expand All @@ -594,7 +594,7 @@ function WS_xmlToArgs(&$args)
$is_array = 1;
$child_nodes = $node->childNodes;
if ($child_nodes == null)
continue;
continue 2;

$args[$node->localName] = array();
for ($i = 0; $i < $child_nodes->length; $i++) {
Expand Down

0 comments on commit e6a1e1f

Please sign in to comment.