Skip to content
Snippets Groups Projects
Commit 332c9fad authored by Angie Byron's avatar Angie Byron
Browse files

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

parent 6db5c859
No related branches found
No related tags found
No related merge requests found
......@@ -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.'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment