Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notice: Trying to access array offset on value of type bool in nusoap.php on line 5697 #55

Closed
PawelSuwinski opened this issue Apr 14, 2020 · 0 comments · Fixed by #56
Closed

Comments

@PawelSuwinski
Copy link
Contributor

PawelSuwinski commented Apr 14, 2020

Fix for that:

--- nusoap.php.orig	2020-04-14 15:10:57.172872019 +0200
+++ nusoap.php	2020-04-14 15:12:43.172875702 +0200
@@ -5694,7 +5694,7 @@
                         $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);

Issue of using $typeDef without checking is it array or boolean (getTypeDef: bool|array).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant