Skip to content

Commit

Permalink
MDL-24722 adding missing context info
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Oct 18, 2010
1 parent 4c56c7b commit 5ecfec6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions user/emailupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
$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');
Expand Down

0 comments on commit 5ecfec6

Please sign in to comment.