Skip to content

Commit

Permalink
Merge branch 'MDL-60653-34' of git://github.com/rezaies/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_34_STABLE
  • Loading branch information
David Monllao committed Dec 18, 2017
2 parents 18e6878 + 74af3b1 commit aaf94b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/navigationlib.php
Expand Up @@ -434,7 +434,7 @@ public function find($key, $type) {
public function build_flat_navigation_list(flat_navigation $nodes, $showdivider = false) { public function build_flat_navigation_list(flat_navigation $nodes, $showdivider = false) {
if ($this->showinflatnavigation) { if ($this->showinflatnavigation) {
$indent = 0; $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; $indent = 1;
} }
$flat = new flat_navigation_node($this, $indent); $flat = new flat_navigation_node($this, $indent);
Expand Down

0 comments on commit aaf94b8

Please sign in to comment.