navigation MDL-14632 Wrapping if in brackets just to be safe

This commit is contained in:
samhemelryk 2009-09-04 07:41:21 +00:00
parent 766ccfbd25
commit c73e37e0ef

View File

@ -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) {