Skip to content

Commit

Permalink
Merge branch 'MDL-52166' of https://github.com/timhunt/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Nov 23, 2015
2 parents 57d4e11 + e168e38 commit 6bef09a
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 @@ -65,9 +65,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 6bef09a

Please sign in to comment.