mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-15 19:20:47 +01:00
Return correct error objects
This commit is contained in:
parent
89bf32bb59
commit
6d507464c0
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user