mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-52166' of https://github.com/timhunt/moodle
This commit is contained in:
commit
6bef09a490
1 changed files with 2 additions and 2 deletions
|
@ -65,9 +65,9 @@ if (isset($personalcontext) && $courseid == SITEID) {
|
||||||
if ($userid == $USER->id) {
|
if ($userid == $USER->id) {
|
||||||
$settings = $PAGE->settingsnav->find('mygrades', null);
|
$settings = $PAGE->settingsnav->find('mygrades', null);
|
||||||
$settings->make_active();
|
$settings->make_active();
|
||||||
} else if ($courseid != SITEID) {
|
} else if ($courseid != SITEID && $userid) {
|
||||||
// Show some other navbar thing.
|
// 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);
|
$PAGE->navigation->extend_for_user($user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue