Merge branch 'MDL-66806_36' of git://github.com/dmonllao/moodle into MOODLE_36_STABLE

This commit is contained in:
Jun Pataleta
2019-10-18 09:34:24 +08:00
@@ -130,6 +130,10 @@ class course_dropout extends \core_analytics\local\target\binary {
return get_string('coursenotyetstarted');
}
if (!$fortraining && !$course->get_course_data()->visible) {
return get_string('hiddenfromstudents');
}
if (!$students = $course->get_students()) {
return get_string('nocoursestudents');
}