mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-71274-master' of git://github.com/aanabit/moodle
This commit is contained in:
commit
5a0cca1e3c
1 changed files with 4 additions and 0 deletions
|
@ -103,6 +103,10 @@ class no_recent_accesses extends course_enrolments {
|
||||||
return get_string('nocoursestudents', 'course');
|
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()) {
|
if ($course->get_end() && $course->get_end() < $course->get_start()) {
|
||||||
return get_string('errorendbeforestart', 'course');
|
return get_string('errorendbeforestart', 'course');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue