MDL-66806 analytics: No predictions for hidden courses
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user