Merge branch 'MDL-57636_master' of https://github.com/dasistwas/moodle
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 7 Jan 2019 05:45:04 +0000 (13:45 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 7 Jan 2019 05:45:04 +0000 (13:45 +0800)
course/renderer.php

index ad00ffb..4321d51 100644 (file)
@@ -2425,9 +2425,8 @@ class core_course_renderer extends plugin_renderer_base {
                     if (!empty($mycourseshtml)) {
                         $output .= $this->frontpage_part('skipmycourses', 'frontpage-course-list',
                             get_string('mycourses'), $mycourseshtml);
-                        break;
                     }
-                    // No "break" here. If there are no enrolled courses - continue to 'Available courses'.
+                    break;
 
                 case FRONTPAGEALLCOURSELIST:
                     $availablecourseshtml = $this->frontpage_available_courses();