aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'));