diff --git a/course/format/renderer.php b/course/format/renderer.php index 3fbb59bc637..b04565905c9 100644 --- a/course/format/renderer.php +++ b/course/format/renderer.php @@ -414,7 +414,11 @@ abstract class format_section_renderer_base extends plugin_renderer_base { $o .= $section->availableinfo; $o .= html_writer::end_tag('div'); } else if ($canviewhidden && !empty($CFG->enableavailability) && $section->visible) { - $ci = new condition_info_section($section); + // The CONDITION_MISSING_EXTRATABLE is to hide a performance warning that + // only applies in 2.3 because of the way we construct section objects on + // the FIRST view of a course. In future views, we shouldn't have anything + // missing. + $ci = new condition_info_section($section, CONDITION_MISSING_EXTRATABLE); $fullinfo = $ci->get_full_information(); if ($fullinfo) { $o .= html_writer::start_tag('div', array('class' => 'availabilityinfo'));