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 45977d452a4..5b6ca4bff15 100644 --- a/course/format/renderer.php +++ b/course/format/renderer.php @@ -552,6 +552,8 @@ abstract class format_section_renderer_base extends plugin_renderer_base { // 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