Commit 332c9fad authored by webchick's avatar webchick

Issue #2080709 by chertzog, mikemiles86: Remove unused local variables from the XMLRPC module.

parent 6db5c859
......@@ -215,7 +215,8 @@ function xmlrpc_server_call($xmlrpc_server, $methodname, $args) {
// If the method has a signature, validate the request against the signature
if (is_array($signature)) {
$ok = TRUE;
$return_type = array_shift($signature);
// Remove first element of $signature which is the unused 'return type'.
array_shift($signature);
// Check the number of arguments
if (count($args) != count($signature)) {
return xmlrpc_error(-32602, t('Server error. Wrong number of method parameters.'));
......
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