From 6d507464c0ab8356915d0a190835432ecfb4af36 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Thu, 6 Dec 2001 14:43:05 +0000 Subject: [PATCH] Return correct error objects --- phpgwapi/inc/class.xmlrpcmsg.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.xmlrpcmsg.inc.php b/phpgwapi/inc/class.xmlrpcmsg.inc.php index 1c9d1a5937..d230b76548 100644 --- a/phpgwapi/inc/class.xmlrpcmsg.inc.php +++ b/phpgwapi/inc/class.xmlrpcmsg.inc.php @@ -105,6 +105,7 @@ { $ipd .= $data; } + /* echo $ipd;exit; */ return $this->parseResponse($ipd); } @@ -198,7 +199,7 @@ xml_get_current_line_number($parser)); } error_log($errstr); - $r = CreateObject('phpgwapi.xmlrpcresp',CreateObject('phpgwapi.xmlrpcval'), $GLOBALS['xmlrpcerr']['invalid_return'],$GLOBALS['xmlrpcstr']['invalid_return']); + $r = CreateObject('phpgwapi.xmlrpcresp', 0, $GLOBALS['xmlrpcerr']['invalid_return'],$GLOBALS['xmlrpcstr']['invalid_return']); xml_parser_free($parser); return $r; } @@ -214,7 +215,7 @@ // then something odd has happened // and it's time to generate a client side error // indicating something odd went on - $r = CreateObject('phpgwapi.xmlrpcresp',CreateObject('phpgwapi.xmlrpcval'), $GLOBALS['xmlrpcerr']['invalid_return'],$GLOBALS['xmlrpcstr']['invalid_return']); + $r = CreateObject('phpgwapi.xmlrpcresp', 0, $GLOBALS['xmlrpcerr']['invalid_return'],$GLOBALS['xmlrpcstr']['invalid_return']); } else {