Skip to content

Commit

Permalink
NOMDL MNet improved debugging - do not not call get_string() for non-…
Browse files Browse the repository at this point in the history
…localized error messages
  • Loading branch information
mudrd8mz committed Jul 17, 2010
1 parent fe73e93 commit 53d15f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mnet/xmlrpc/client.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,11 @@ function send($mnet_peer) {
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 = '';
}
Expand Down

0 comments on commit 53d15f9

Please sign in to comment.