From 7455ded099d1ff638b878b1c85188f1562c90b6a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 14 Jun 2002 14:51:35 +0000 Subject: Fixed XML RPC sending of args --- pear/PEAR/Remote.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pear/PEAR/Remote.php b/pear/PEAR/Remote.php index 43a5af8618..cb53031b84 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); @@ -203,7 +205,7 @@ class PEAR_Remote extends PEAR $type = gettype($php_val); $xmlrpcval = new XML_RPC_Value; - + switch($type) { case "array": reset($php_val); @@ -262,4 +264,4 @@ class PEAR_Remote extends PEAR } -?> \ No newline at end of file +?> -- cgit v1.2.1