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);