MDL-33126 Fix error on first view of new course page

This commit is contained in:
sam marshall 2012-05-21 12:05:30 +01:00
parent 4f7f2a8828
commit 57a42a24ad

View File

@ -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