Skip to content

Commit

Permalink
navigation MDL-14632 Wrapping if in brackets just to be safe
Browse files Browse the repository at this point in the history
  • Loading branch information
samhemelryk committed Sep 4, 2009
1 parent 766ccfb commit c73e37e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/navigationlib.php
Expand Up @@ -250,7 +250,7 @@ public function add($text, $action=null, $shorttext=null, $key=null, $type=null,
}
$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) {
Expand Down

0 comments on commit c73e37e

Please sign in to comment.