mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-31802' of git://github.com/aolley/moodle
This commit is contained in:
commit
539f2381f6
@ -1924,6 +1924,8 @@ class global_navigation extends navigation_node {
|
||||
$activities = array();
|
||||
|
||||
foreach ($sections as $key => $section) {
|
||||
$sections[$key] = clone($section);
|
||||
unset($sections[$key]->summary);
|
||||
$sections[$key]->hasactivites = false;
|
||||
if (!array_key_exists($section->section, $modinfo->sections)) {
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user