From 57a42a24ad69f8fbe7e8fd86678d2749e3163ae6 Mon Sep 17 00:00:00 2001 From: sam marshall Date: Mon, 21 May 2012 12:05:30 +0100 Subject: [PATCH] MDL-33126 Fix error on first view of new course page --- course/format/renderer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/course/format/renderer.php b/course/format/renderer.php index 45977d452a437..5b6ca4bff1583 100644 --- a/course/format/renderer.php +++ b/course/format/renderer.php @@ -552,6 +552,8 @@ public function print_multiple_section_page($course, $sections, $mods, $modnames // a section_info object - we will need at least the uservisible // field in it. $thissection->uservisible = true; + $thissection->availableinfo = null; + $thissection->showavailability = 0; } // Show the section if the user is permitted to access it, OR if it's not available // but showavailability is turned on