diff --git a/phpgwapi/inc/class.interserver.inc.php b/phpgwapi/inc/class.interserver.inc.php index de8afa736f..c67255c3d0 100644 --- a/phpgwapi/inc/class.interserver.inc.php +++ b/phpgwapi/inc/class.interserver.inc.php @@ -148,7 +148,18 @@ { while(list($key,$val) = @each($args)) { - $ele[$key] = CreateObject('phpgwapi.xmlrpcval',$val, 'string'); + if(gettype($val) == 'array') + { + while(list($x,$y) = each($val)) + { + $tmp[$x] = CreateObject('phpgwapi.xmlrpcval',$y, 'string'); + } + $ele[$key] = CreateObject('phpgwapi.xmlrpcval',$tmp,'struct'); + } + else + { + $ele[$key] = CreateObject('phpgwapi.xmlrpcval',$val, 'string'); + } } } $arr[] = CreateObject('phpgwapi.xmlrpcval',$ele,'struct'); @@ -191,7 +202,18 @@ { while(list($key,$val) = @each($args)) { - $ele[$key] = CreateObject('phpgwapi.xmlrpcval',$val, 'string'); + if(gettype($val) == 'array') + { + while(list($x,$y) = each($val)) + { + $tmp[$x] = CreateObject('phpgwapi.xmlrpcval',$y, 'string'); + } + $ele[$key] = CreateObject('phpgwapi.xmlrpcval',$tmp,'struct'); + } + else + { + $ele[$key] = CreateObject('phpgwapi.xmlrpcval',$val, 'string'); + } } } $arr[] = CreateObject('phpgwapi.xmlrpcval',$ele,'struct');