From 53d15f925b91d02e81083d2ab3c29280b2d8fd56 Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Sat, 17 Jul 2010 22:18:20 +0000 Subject: [PATCH] NOMDL MNet improved debugging - do not not call get_string() for non-localized error messages --- mnet/xmlrpc/client.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mnet/xmlrpc/client.php b/mnet/xmlrpc/client.php index ad5484c6958..e56bf742a4a 100644 --- a/mnet/xmlrpc/client.php +++ b/mnet/xmlrpc/client.php @@ -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 = ''; }