Merge branch 'MDL-33126-master' of git://github.com/sammarshallou/moodle

This commit is contained in:
Dan Poltawski 2012-05-21 20:17:12 +08:00
commit f7290156ad

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