diff --git a/lib/navigationlib.php b/lib/navigationlib.php index cd556689832..d4c9944de91 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -250,7 +250,7 @@ class navigation_node { } $itemarray['key'] = $key; $this->children[$key] = new navigation_node($itemarray); - if ($type==self::TYPE_CATEGORY || (isloggedin() && $type==self::TYPE_COURSE)) { + if (($type==self::TYPE_CATEGORY) || (isloggedin() && $type==self::TYPE_COURSE)) { $this->children[$key]->nodetype = self::NODETYPE_BRANCH; } if ($this->hidden) {