NOMDL MNet improved debugging - do not not call get_string() for non-localized error messages

This commit is contained in:
David Mudrak
2010-07-17 22:18:20 +00:00
parent fe73e93545
commit 53d15f925b
+5 -1
View File
@@ -282,7 +282,11 @@ class mnet_xmlrpc_client {
return $this->send($rekeyed_mnet_peer);
}
if (!empty($CFG->mnet_rpcdebug)) {
$guidance = get_string('error'.$this->response['faultCode'], 'mnet');
if (get_string_manager()->string_exists('error'.$this->response['faultCode'], 'mnet')) {
$guidance = get_string('error'.$this->response['faultCode'], 'mnet');
} else {
$guidance = '';
}
} else {
$guidance = '';
}