From 5316007e080327f1547fe017d0af588e16c4aee9 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Fri, 18 May 2012 14:56:00 +0800 Subject: [PATCH] MDL-24419 section availability: display availability info to teachers --- course/format/renderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/format/renderer.php b/course/format/renderer.php index 63f3bdc199c..45977d452a4 100644 --- a/course/format/renderer.php +++ b/course/format/renderer.php @@ -291,7 +291,7 @@ abstract class format_section_renderer_base extends plugin_renderer_base { */ protected function section_availability_message($section) { $o = ''; - if (!$section->uservisible) { + if (!$section->uservisible || $section->availableinfo) { $o .= html_writer::start_tag('div', array('class' => 'availabilityinfo')); if (!empty($section->availableinfo)) { $o .= $section->availableinfo;