Merge branch 'MDL-28187_messaging_nav' of git://github.com/andyjdavis/moodle

This commit is contained in:
Sam Hemelryk
2012-03-19 14:14:28 +13:00

View File

@ -30,12 +30,9 @@ $course = optional_param('course', SITEID, PARAM_INT); // course id (defaults
$disableall = optional_param('disableall', 0, PARAM_BOOL); //disable all of this user's notifications
$url = new moodle_url('/message/edit.php');
if ($userid !== $USER->id) {
$url->param('id', $userid);
}
if ($course != SITEID) {
$url->param('course', $course);
}
$url->param('id', $userid);
$url->param('course', $course);
$PAGE->set_url($url);
if (!$course = $DB->get_record('course', array('id' => $course))) {