From f21b480d19e2d823d408794dc066ca9c935f149e Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 10 Feb 2005 17:23:34 +0000 Subject: [PATCH] Merged fix from HEAD --- enrol/enrol.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/enrol/enrol.class.php b/enrol/enrol.class.php index 5ad47c65390..37209f8122b 100644 --- a/enrol/enrol.class.php +++ b/enrol/enrol.class.php @@ -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); } }