mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
MDL-33126 Fix error on first view of new course page
This commit is contained in:
parent
4f7f2a8828
commit
57a42a24ad
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user