Skip to content

Commit

Permalink
MDL-52166 gradebook: overview report fails with separate groups
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Nov 16, 2015
1 parent 26653c8 commit e168e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grade/report/overview/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
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);
}

Expand Down

0 comments on commit e168e38

Please sign in to comment.