Merge branch 'MDL-28187_messaging_nav_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE

This commit is contained in:
Sam Hemelryk
2012-03-19 14:14:17 +13:00
+3 -6
View File
@@ -31,12 +31,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))) {