From 45fa816515fbfc692619493836d674c8aad323d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Suwi=C5=84ski?= Date: Wed, 15 Apr 2020 13:02:43 +0200 Subject: [PATCH] Issue #55 fix - access array offset on value of type bool @see https://github.com/pwnlabs/nusoap/issues/55 --- src/nusoap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nusoap.php b/src/nusoap.php index 1befb04..ac5ba94 100644 --- a/src/nusoap.php +++ b/src/nusoap.php @@ -5694,7 +5694,7 @@ function serialize($debug = 0) $ns = $this->getNamespaceFromPrefix($typePrefix); $localPart = $this->getLocalPart($partType); $typeDef = $this->getTypeDef($localPart, $ns); - if ($typeDef['typeClass'] == 'element') { + if (isset($typeDef['typeClass']) && $typeDef['typeClass'] == 'element') { $elementortype = 'element'; if (substr($localPart, -1) == '^') { $localPart = substr($localPart, 0, -1);