Merged fix from HEAD
This commit is contained in:
@@ -302,6 +302,11 @@ function cron() {
|
||||
|
||||
if ($students = get_records_select('user_students', $select)) {
|
||||
foreach ($students as $student) {
|
||||
if ($course = get_record('course', 'id', $student->course)) {
|
||||
if (empty($course->enrolperiod)) { // This overrides student timeend
|
||||
continue;
|
||||
}
|
||||
}
|
||||
unenrol_student($student->userid, $student->course);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user