We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 00f88c2 + 1ab9160 commit 9e3b6c6Copy full SHA for 9e3b6c6
lib/navigationlib.php
@@ -432,7 +432,7 @@ public function find($key, $type) {
432
public function build_flat_navigation_list(flat_navigation $nodes, $showdivider = false) {
433
if ($this->showinflatnavigation) {
434
$indent = 0;
435
- if ($this->type == self::TYPE_COURSE || $this->key == self::COURSE_INDEX_PAGE) {
+ if ($this->type == self::TYPE_COURSE || $this->key === self::COURSE_INDEX_PAGE) {
436
$indent = 1;
437
}
438
$flat = new flat_navigation_node($this, $indent);
0 commit comments