MDL-40260 block_course_overview: prevent MNET courses from being dimmed

This commit is contained in:
Daniel Myers
2013-07-15 13:55:57 +12:00
committed by Dan Marsden
parent 2c66b71ab4
commit 4fae47dedc
+1 -1
View File
@@ -106,7 +106,7 @@ class block_course_overview_renderer extends plugin_renderer_base {
// No need to pass title through s() here as it will be done automatically by html_writer.
$attributes = array('title' => $course->fullname);
if (empty($course->visible)) {
if (empty($course->visible) && ($course->id > 0)) {
$attributes['class'] = 'dimmed';
}
if ($course->id > 0) {