mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-59599 navigation: Strict zero-position comparision
This commit is contained in:
parent
727592291b
commit
6af4e08333
1 changed files with 1 additions and 1 deletions
|
@ -2733,7 +2733,7 @@ class global_navigation extends navigation_node {
|
|||
$gradenode = $coursenode->add(get_string('grades'), $url, self::TYPE_SETTING, null,
|
||||
'grades', new pix_icon('i/grades', ''));
|
||||
// If the page type matches the grade part, then make the nav drawer grade node (incl. all sub pages) active.
|
||||
if (strpos($this->page->pagetype, 'grade-') == 0) {
|
||||
if (strpos($this->page->pagetype, 'grade-') === 0) {
|
||||
$gradenode->make_active();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue