Permalink
Browse files

MDL-32026 messaging: Fix non-existing variable in the error output

  • Loading branch information...
Ruslan Kabalin
Ruslan Kabalin committed Mar 9, 2012
1 parent 23778a4 commit 43798a4efad71f6c698f25d947d06d516432643c
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/messagelib.php
View
@@ -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');
}

0 comments on commit 43798a4

Please sign in to comment.