Skip to content

Commit

Permalink
Merge branch 'wip-MDL-29672-master' of git://github.com/samhemelryk/m…
Browse files Browse the repository at this point in the history
…oodle
  • Loading branch information
Aparup Banerjee committed Oct 10, 2011
2 parents c676af9 + 01ec550 commit f717586
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions user/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
$course = optional_param('course', SITEID, PARAM_INT); // course id (defaults to Site)
$cancelemailchange = optional_param('cancelemailchange', 0, PARAM_INT); // course id (defaults to Site)

$PAGE->set_url('/user/edit.php', array('course'=>$course, 'id'=>$userid, 'cancelemailchange'=>$cancelemailchange));
$PAGE->set_url('/user/edit.php', array('course'=>$course, 'id'=>$userid));

if (!$course = $DB->get_record('course', array('id'=>$course))) {
print_error('invalidcourseid');
Expand All @@ -50,7 +50,8 @@
}
redirect(get_login_url());
} else {
$PAGE->set_course($course);
$PAGE->set_context(get_system_context());
$PAGE->set_pagelayout('standard');
}

// Guest can not edit
Expand Down

0 comments on commit f717586

Please sign in to comment.