From 43798a4efad71f6c698f25d947d06d516432643c Mon Sep 17 00:00:00 2001 From: Ruslan Kabalin Date: Fri, 9 Mar 2012 16:32:39 +0000 Subject: [PATCH] MDL-32026 messaging: Fix non-existing variable in the error output --- lib/messagelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/messagelib.php b/lib/messagelib.php index 9619b96d88f..b86ac100095 100644 --- a/lib/messagelib.php +++ b/lib/messagelib.php @@ -128,7 +128,7 @@ function message_send($eventdata) { } else { //MDL-25114 They supplied an $eventdata->component $eventdata->name combination which doesn't //exist in the message_provider table (thus there is no default settings for them) - $preferrormsg = get_string('couldnotfindpreference', 'message', $preferencename); //TODO: undefined $preferencename + $preferrormsg = get_string('couldnotfindpreference', 'message', $defaultpreference); throw new coding_exception($preferrormsg,'blah'); }