From dddabc8dffc5c1477eaac01d90adb3b100381dac Mon Sep 17 00:00:00 2001 From: gggeek Date: Sat, 25 Feb 2023 13:28:59 +0000 Subject: [PATCH] logical fix for unexpected parsing results --- src/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Request.php b/src/Request.php index 0b891507..203113e1 100644 --- a/src/Request.php +++ b/src/Request.php @@ -357,7 +357,7 @@ class Request } // third error check: parsing of the response has somehow gone boink. /// @todo shall we omit this check, since we trust the parsing code? - elseif ($_xh['isf'] > 3 || $returnType == XMLParser::RETURN_XMLRPCVALS && !is_object($_xh['value'])) { + elseif ($_xh['isf'] > 3 || ($returnType == XMLParser::RETURN_XMLRPCVALS && !is_object($_xh['value']))) { // something odd has happened and it's time to generate a client side error indicating something odd went on $r = new Response(0, PhpXmlRpc::$xmlrpcerr['xml_parsing_error'], PhpXmlRpc::$xmlrpcstr['xml_parsing_error'], '', $httpResponse -- 2.47.0