Fix nusoap bug

This commit is contained in:
Laurent Destailleur 2023-12-17 13:23:06 +01:00
parent 55f5c6663d
commit d4f61dcf59
2 changed files with 6 additions and 1 deletions

View File

@ -55,6 +55,11 @@ NUSOAP:
preg_match('/\$Revision: ([^ ]+)/', $this->revision, $rev);
$this->outgoing_headers[] = "X-SOAP-Server: $this->title/$this->version (".(isset($rev[1]) ? $rev[1] : '').")";
* Line 6566 of file nusoap.php, replace
if (count($attrs) > 0) {
with
if (is_array($attrs) && count($attrs) > 0) {

View File

@ -6563,7 +6563,7 @@ class wsdl extends nusoap_base
$elements = $eElements;
}
if (count($attrs) > 0) {
if (is_array($attrs) && count($attrs) > 0) {
$eAttrs = array ();
foreach ($attrs as $n => $a) {
$aa = array ();