]> granicus.if.org Git - php/commitdiff
Fixed XML RPC sending of args - lets try and get the right tag :)
authorAlan Knowles <alan_k@php.net>
Fri, 14 Jun 2002 14:55:28 +0000 (14:55 +0000)
committerAlan Knowles <alan_k@php.net>
Fri, 14 Jun 2002 14:55:28 +0000 (14:55 +0000)
pear/PEAR/Remote.php

index 43a5af8618d41d21471eae7c95e0537c6b71554a..eea8b919f97c4a597730c444c64aad85593b9100 100644 (file)
@@ -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
+?>