Browse files

MDL-31802 - navigation: add a comment about session reduction

  • Loading branch information...
1 parent a3039b2 commit d3c8f933df870944ea3e3e1f49415d16d09a0b1e @danpoltawski danpoltawski committed Jul 2, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/navigationlib.php
View
1 lib/navigationlib.php
@@ -1636,6 +1636,7 @@ protected function generate_sections_and_activities(stdClass $course) {
$activities = array();
foreach ($sections as $key => $section) {
+ // Clone and unset summary to prevent $SESSION bloat (MDL-31802).
$sections[$key] = clone($section);
unset($sections[$key]->summary);
$sections[$key]->hasactivites = false;

0 comments on commit d3c8f93

Please sign in to comment.