Return correct error objects

This commit is contained in:
Miles Lott 2001-12-06 14:43:05 +00:00
parent 89bf32bb59
commit 6d507464c0

View File

@ -105,6 +105,7 @@
{ {
$ipd .= $data; $ipd .= $data;
} }
/* echo $ipd;exit; */
return $this->parseResponse($ipd); return $this->parseResponse($ipd);
} }
@ -198,7 +199,7 @@
xml_get_current_line_number($parser)); xml_get_current_line_number($parser));
} }
error_log($errstr); 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); xml_parser_free($parser);
return $r; return $r;
} }
@ -214,7 +215,7 @@
// then something odd has happened // then something odd has happened
// and it's time to generate a client side error // and it's time to generate a client side error
// indicating something odd went on // 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 else
{ {