mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-24722 adding missing context info
This commit is contained in:
parent
4c56c7bf0c
commit
5ecfec6d7c
@ -31,6 +31,7 @@ $key = required_param('key', PARAM_ALPHANUM);
|
||||
$id = required_param('id', PARAM_INT);
|
||||
|
||||
$PAGE->set_url('/user/emailupdate.php', array('id'=>$id, 'key'=>$key));
|
||||
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
|
||||
|
||||
if (!$user = $DB->get_record('user', array('id' => $id))) {
|
||||
print_error('invaliduserid');
|
||||
|
Loading…
x
Reference in New Issue
Block a user