]> git.mjollnir.org Git - moodle.git/commitdiff
navigation MDL-14632 Wrapping if in brackets just to be safe
authorsamhemelryk <samhemelryk>
Fri, 4 Sep 2009 07:41:21 +0000 (07:41 +0000)
committersamhemelryk <samhemelryk>
Fri, 4 Sep 2009 07:41:21 +0000 (07:41 +0000)
lib/navigationlib.php

index cd5566898323c0f36222f9162449648b8432f431..d4c9944de9142f543b9c293b833e404ba8dcf243 100644 (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) {