mirror of
https://github.com/moodle/moodle.git
synced 2025-02-27 13:32:31 +01:00
Merge branch 'MDL-73732-master' of https://github.com/sharidas/moodle
This commit is contained in:
commit
625218e0f1
@ -4042,9 +4042,11 @@ class flat_navigation_node extends navigation_node {
|
||||
|
||||
if ($this->is_section()) {
|
||||
$active = $PAGE->navigation->find_active_node();
|
||||
while ($active = $active->parent) {
|
||||
if ($active->key == $this->key && $active->type == $this->type) {
|
||||
return true;
|
||||
if ($active) {
|
||||
while ($active = $active->parent) {
|
||||
if ($active->key == $this->key && $active->type == $this->type) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user