Mnet: Update user's enrolment information on jump/land

This commit is contained in:
donal72 2007-01-23 02:38:54 +00:00
parent 3de34ccf68
commit 573f8b025c
3 changed files with 112 additions and 6 deletions

View file

@ -253,7 +253,7 @@ function mnet_server_fault($code, $text, $param = null) {
* @return string $text The XML text of the error message
*/
function mnet_server_fault_xml($code, $text) {
global $MNET_REMOTE_CLIENT;
global $MNET_REMOTE_CLIENT, $CFG;
// Replace illegal XML chars - is this already in a lib somewhere?
$text = str_replace(array('<','>','&','"',"'"), array('&lt;','&gt;','&amp;','&quot;','&apos;'), $text);
@ -274,6 +274,12 @@ function mnet_server_fault_xml($code, $text) {
</value>
</fault>
</methodResponse>');
if (!empty($CFG->mnet_rpcdebug)) {
trigger_error("XMLRPC Error Response");
trigger_error(print_r($return,1));
}
return $return;
}