Permalink
Browse files

MDL-31802: Remove section summaries from navigation_cache

  • Loading branch information...
1 parent a5f6ea2 commit a44c303d636badaedbcbd6999c0dae07d4c6c97f @aolley aolley committed Feb 28, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/navigationlib.php
@@ -1924,6 +1924,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;

0 comments on commit a44c303

Please sign in to comment.