Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit d3c8f933df870944ea3e3e1f49415d16d09a0b1e 1 parent a3039b2
@danpoltawski danpoltawski authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.