Skip to content

Commit

Permalink
Issue #55 fix - access array offset on value of type bool
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelSuwinski authored and f3l1x committed Apr 15, 2020
1 parent 8154e16 commit 45fa816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nusoap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 45fa816

Please sign in to comment.