From 2383dd5d76ee9573df2de75c92a45b9361ba8c66 Mon Sep 17 00:00:00 2001 From: lapiudevgit Date: Thu, 10 Oct 2024 08:09:22 -0300 Subject: [PATCH] Fix "Undefined variable $c" in Zend_XmlRpc_Server::setResponseClass() --- library/Zend/XmlRpc/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Zend/XmlRpc/Server.php b/library/Zend/XmlRpc/Server.php index b25e25174c..505e54533a 100644 --- a/library/Zend/XmlRpc/Server.php +++ b/library/Zend/XmlRpc/Server.php @@ -465,7 +465,7 @@ public function getRequest() public function setResponseClass($class) { if (!class_exists($class) || - ($c = new ReflectionClass($class) && !$c->isSubclassOf('Zend_XmlRpc_Response'))) { + (($c = new ReflectionClass($class)) && !$c->isSubclassOf('Zend_XmlRpc_Response'))) { require_once 'Zend/XmlRpc/Server/Exception.php'; throw new Zend_XmlRpc_Server_Exception('Invalid response class');