From: Alan Knowles Date: Fri, 14 Jun 2002 14:55:28 +0000 (+0000) Subject: Fixed XML RPC sending of args - lets try and get the right tag :) X-Git-Tag: php5_5_0~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78fffcce0ee5a327e1222fed64bcf3cfb9d2256d;p=php Fixed XML RPC sending of args - lets try and get the right tag :) --- diff --git a/pear/PEAR/Remote.php b/pear/PEAR/Remote.php index 43a5af8618..eea8b919f9 100644 --- a/pear/PEAR/Remote.php +++ b/pear/PEAR/Remote.php @@ -63,7 +63,9 @@ class PEAR_Remote extends PEAR $server_host = $this->config->get('master_server'); $username = $this->config->get('username'); $password = $this->config->get('password'); - $f = new XML_RPC_Message($method, $this->_encode($args)); + $eargs = array(); + foreach($args as $arg) $eargs[] = $this->_encode($arg); + $f = new XML_RPC_Message($method, $eargs); $c = new XML_RPC_Client('/xmlrpc.php', $server_host, 80); if ($username && $password) { $c->setCredentials($username, $password); @@ -262,4 +264,4 @@ class PEAR_Remote extends PEAR } -?> \ No newline at end of file +?>