mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
navigation MDL-14632 Wrapping if in brackets just to be safe
This commit is contained in:
parent
766ccfbd25
commit
c73e37e0ef
@ -250,7 +250,7 @@ class navigation_node {
|
|||||||
}
|
}
|
||||||
$itemarray['key'] = $key;
|
$itemarray['key'] = $key;
|
||||||
$this->children[$key] = new navigation_node($itemarray);
|
$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;
|
$this->children[$key]->nodetype = self::NODETYPE_BRANCH;
|
||||||
}
|
}
|
||||||
if ($this->hidden) {
|
if ($this->hidden) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user