From 6af4e08333e8fdb1aaf52a4edb2bf3c9bbfe2265 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Mon, 9 Jul 2018 12:27:25 +0200 Subject: [PATCH] MDL-59599 navigation: Strict zero-position comparision --- lib/navigationlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/navigationlib.php b/lib/navigationlib.php index f2f4cb10471..3ec8ccc54f7 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -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(); } }