[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] api/interface class.interface_soap.php, 1.1.2.2, 1.1.
From: |
Dan Kuykendall <address@hidden> |
Subject: |
[Phpgroupware-cvs] api/interface class.interface_soap.php, 1.1.2.2, 1.1.2.3 |
Date: |
Sat, 08 Nov 2003 05:23:39 +0000 |
Update of /cvsroot/phpgroupware/api/interface
In directory subversions:/tmp/cvs-serv29185/api/interface
Modified Files:
Tag: proposal-branch
class.interface_soap.php
Log Message:
updated with a small fix
Index: class.interface_soap.php
===================================================================
RCS file: /cvsroot/phpgroupware/api/interface/Attic/class.interface_soap.php,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** class.interface_soap.php 8 Nov 2003 01:38:42 -0000 1.1.2.2
--- class.interface_soap.php 8 Nov 2003 05:23:36 -0000 1.1.2.3
***************
*** 159,162 ****
--- 159,163 ----
if(!empty($this->method_result))
{
+ $this->i = 0;
$response_packet .=
$this->add_vars($this->method_result);
}
***************
*** 360,363 ****
--- 361,365 ----
function add_vars($params, $name='soapVal')
{
+ $this->i++;
if(!is_array($params))
{
***************
*** 371,375 ****
if(is_array($val))
{
! $result .=
$this->add_vars($val);
}
else
--- 373,384 ----
if(is_array($val))
{
! if(!is_int(key($params)))
! {
! $result .=
$this->add_vars($val, key($params));
! }
! else
! {
! $result .=
$this->add_vars($val);
! }
}
else
***************
*** 380,387 ****
$result .= "</$name>\n";
}
- /* Im not clear why its double struct'ing, but it is
and this is how I fixed it for now /*
- /* If you dont like this hack, fix it. Dan*/
- //$result = str_replace ("<soapVal>\n<soapVal>\n",
"<soapVal>\n", $result);
- //$result = str_replace ("</soapVal>\n</soapVal>\n",
"</soapVal>\n", $result);
return $result;
}
--- 389,392 ----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] api/interface class.interface_soap.php, 1.1.2.2, 1.1.2.3,
Dan Kuykendall <address@hidden> <=