Merge branch 'MDL-60653-master' of git://github.com/rezaies/moodle
authorDavid Monllao <davidm@moodle.com>
Mon, 18 Dec 2017 16:59:32 +0000 (17:59 +0100)
committerDavid Monllao <davidm@moodle.com>
Mon, 18 Dec 2017 16:59:32 +0000 (17:59 +0100)
lib/navigationlib.php

index 16d7b63..7254a09 100644 (file)
@@ -434,7 +434,7 @@ class navigation_node implements renderable {
     public function build_flat_navigation_list(flat_navigation $nodes, $showdivider = false) {
         if ($this->showinflatnavigation) {
             $indent = 0;
-            if ($this->type == self::TYPE_COURSE || $this->key == self::COURSE_INDEX_PAGE) {
+            if ($this->type == self::TYPE_COURSE || $this->key === self::COURSE_INDEX_PAGE) {
                 $indent = 1;
             }
             $flat = new flat_navigation_node($this, $indent);