mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-52166 gradebook: overview report fails with separate groups
This commit is contained in:
parent
26653c8b5c
commit
e168e38813
@ -64,9 +64,9 @@ if (isset($personalcontext) && $courseid == SITEID) {
|
||||
if ($userid == $USER->id) {
|
||||
$settings = $PAGE->settingsnav->find('mygrades', null);
|
||||
$settings->make_active();
|
||||
} else if ($courseid != SITEID) {
|
||||
} else if ($courseid != SITEID && $userid) {
|
||||
// Show some other navbar thing.
|
||||
$user = $DB->get_record('user', array('id' => $userid));
|
||||
$user = $DB->get_record('user', array('id' => $userid), '*', MUST_EXIST);
|
||||
$PAGE->navigation->extend_for_user($user);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user