Skip to content

Commit 9e3b6c6

Browse files
author
David Monllao
committed
Merge branch 'MDL-60653-33' of git://github.com/rezaies/moodle into MOODLE_33_STABLE
2 parents 00f88c2 + 1ab9160 commit 9e3b6c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/navigationlib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ public function find($key, $type) {
432432
public function build_flat_navigation_list(flat_navigation $nodes, $showdivider = false) {
433433
if ($this->showinflatnavigation) {
434434
$indent = 0;
435-
if ($this->type == self::TYPE_COURSE || $this->key == self::COURSE_INDEX_PAGE) {
435+
if ($this->type == self::TYPE_COURSE || $this->key === self::COURSE_INDEX_PAGE) {
436436
$indent = 1;
437437
}
438438
$flat = new flat_navigation_node($this, $indent);

0 commit comments

Comments
 (0)