From f8fc7ab3e50f396860b302abd36c91d2f84558d4 Mon Sep 17 00:00:00 2001 From: misja Date: Tue, 15 Jul 2008 08:54:27 +0000 Subject: Fix uninitialized XML-RPC handler value git-svn-id: https://code.elgg.org/elgg/trunk@1418 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/xml-rpc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine/lib/xml-rpc.php') diff --git a/engine/lib/xml-rpc.php b/engine/lib/xml-rpc.php index 19ee02fa7..ddd36c993 100644 --- a/engine/lib/xml-rpc.php +++ b/engine/lib/xml-rpc.php @@ -449,7 +449,8 @@ END; // Go through and see if we have a handler if (isset($XML_RPC_HANDLERS[$parameters->getMethodName()])) { - $result = $handler($parameters); + $handler = $XML_RPC_HANDLERS[$parameters->getMethodName()]; + $result = $handler($parameters); if (!($result instanceof XMLRPCResponse)) throw new InvalidParameterException(elgg_echo('InvalidParameterException:UnexpectedReturnFormat')); -- cgit v1.2.3