aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/xml-rpc.php
diff options
context:
space:
mode:
authormisja <misja@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-15 08:54:27 +0000
committermisja <misja@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-15 08:54:27 +0000
commitf8fc7ab3e50f396860b302abd36c91d2f84558d4 (patch)
tree2690b418c9eafbb1b220c59729cd982e42f45b56 /engine/lib/xml-rpc.php
parent50df15ec4125021a6fab4f5c259456827ee717ec (diff)
downloadelgg-f8fc7ab3e50f396860b302abd36c91d2f84558d4.tar.gz
elgg-f8fc7ab3e50f396860b302abd36c91d2f84558d4.tar.bz2
Fix uninitialized XML-RPC handler value
git-svn-id: https://code.elgg.org/elgg/trunk@1418 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/xml-rpc.php')
-rw-r--r--engine/lib/xml-rpc.php3
1 files changed, 2 insertions, 1 deletions
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'));