Skip to content

Commit

Permalink
Merge pull request #451 from lapiudevgit/bug/fix-xmlrpc-setresponse
Browse files Browse the repository at this point in the history
Fix "Undefined variable $c" in Zend_XmlRpc_Server::setResponseClass()
  • Loading branch information
develart-projects authored Oct 10, 2024
2 parents 0d29ea7 + 2383dd5 commit 98b1405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/XmlRpc/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 98b1405

Please sign in to comment.