Skip to content
Browse files

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

  • Loading branch information...
1 parent f2b4305 commit 5c1b768aec94e14e546d7f0a31afe435c6612b36 @danpoltawski danpoltawski committed Jul 2, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/navigationlib.php
View
1 lib/navigationlib.php
@@ -1924,6 +1924,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 5c1b768

Please sign in to comment.
Something went wrong with that request. Please try again.