Commit 2f3115e6 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#647336 by Morbus Iff: No params for xmlrpc() causes PHP 5.3.x failure of...

#647336 by Morbus Iff: No params for xmlrpc() causes PHP 5.3.x failure of XML-RPC. Initialize the XML-RPC message params property properly.
parent 66deac50
......@@ -64,6 +64,9 @@ function xmlrpc_server($callbacks) {
if ($xmlrpc_server->message->messagetype != 'methodCall') {
xmlrpc_server_error(-32600, t('Server error. Invalid XML-RPC. Request must be a methodCall.'));
}
if (!isset($xmlrpc_server->message->params)) {
$xmlrpc_server->message->params = array();
}
xmlrpc_server_set($xmlrpc_server);
$result = xmlrpc_server_call($xmlrpc_server, $xmlrpc_server->message->methodname, $xmlrpc_server->message->params);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment