Merge branch 'MDL-31802' of git://github.com/aolley/moodle

This commit is contained in:
Dan Poltawski 2012-07-02 17:24:48 +08:00
commit 539f2381f6

View File

@ -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;