diff --git a/course/lib.php b/course/lib.php index d3898e0e42e..2dfe9a8ae42 100644 --- a/course/lib.php +++ b/course/lib.php @@ -644,8 +644,13 @@ function print_overview($course) { } $lastaccess = $lastaccess->timeaccess; + $linkcss = ''; + if (empty($course->visible)) { + $linkcss = 'class="dimmed"'; + } + print_simple_box_start("center", '400', '', 5, "coursebox"); - print_heading(''.$course->fullname.''); + print_heading(''.$course->fullname.''); if ($mods = get_course_mods($course->id)) { foreach ($mods as $mod) { if (file_exists(dirname(dirname(__FILE__)).'/mod/'.$mod->modname.'/lib.php')) {