Skip to content

Commit

Permalink
Merge branch 'MDL-31802_21' of git://github.com/aolley/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_21_STABLE
  • Loading branch information
danpoltawski committed Jul 2, 2012
2 parents 0a6a6a9 + bded2e9 commit a3039b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/navigationlib.php
Expand Up @@ -1636,6 +1636,8 @@ protected function generate_sections_and_activities(stdClass $course) {
$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;
Expand Down

0 comments on commit a3039b2

Please sign in to comment.