From: samhemelryk Date: Fri, 4 Sep 2009 07:41:21 +0000 (+0000) Subject: navigation MDL-14632 Wrapping if in brackets just to be safe X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c73e37e0ef690849a70c3fc32c3b25b8ba941e8e;p=moodle.git navigation MDL-14632 Wrapping if in brackets just to be safe --- diff --git a/lib/navigationlib.php b/lib/navigationlib.php index cd55668983..d4c9944de9 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) {