Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

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