Permalink
Browse files

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

  • Loading branch information...
1 parent 66f9505 commit 8c4489c53bf0e989b83e02200049e0aa4a00ffce @danpoltawski danpoltawski committed Jul 2, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/navigationlib.php
View
@@ -1633,6 +1633,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 8c4489c

Please sign in to comment.