Skip to content

Commit

Permalink
Merge branch 'MDL-71274-master' of git://github.com/aanabit/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjona committed May 4, 2021
2 parents 1c9837a + 8732ddd commit 5a0cca1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions course/classes/analytics/target/no_recent_accesses.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ public function is_valid_analysable(\core_analytics\analysable $course, $fortrai
return get_string('nocoursestudents', 'course');
}

if (!$fortraining && !$course->get_course_data()->visible) {
return get_string('hiddenfromstudents');
}

if ($course->get_end() && $course->get_end() < $course->get_start()) {
return get_string('errorendbeforestart', 'course');
}
Expand Down

0 comments on commit 5a0cca1

Please sign in to comment.