Skip to content

Commit

Permalink
MDL-31802 - navigation: add a comment about session reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Jul 2, 2012
1 parent f2b4305 commit 5c1b768
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/navigationlib.php
Expand Up @@ -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;
Expand Down

0 comments on commit 5c1b768

Please sign in to comment.