Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-40260 block_course_overview: prevent MNET courses from being dimmed

  • Loading branch information...
commit c43b7393f85899983d75a0202bb40be598e44dd6 1 parent c2ad901
Daniel Myers authored danmarsden committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  blocks/course_overview/renderer.php
View
2  blocks/course_overview/renderer.php
@@ -103,7 +103,7 @@ public function course_overview($courses, $overviews) {
// 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) {
Please sign in to comment.
Something went wrong with that request. Please try again.