From ee2e85d4ac4b939fe97c3b62eb5404da692be190 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 25 Mar 2008 23:04:06 +0000 Subject: [PATCH] MDL-13360 fixed regression - notifications going more than once a day; merged from MOODLE_19_STABLE --- enrol/manual/enrol.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrol/manual/enrol.php b/enrol/manual/enrol.php index 7596fc76a1..78e51b8eec 100644 --- a/enrol/manual/enrol.php +++ b/enrol/manual/enrol.php @@ -253,7 +253,7 @@ function cron() { // notify once a day only - TODO: add some tz handling here, maybe use timestamps if ($CFG->lastexpirynotify == date('Ymd')) { -// return; + return; } if ($rs = get_recordset_select('course', 'enrolperiod > 0 AND expirynotify > 0 AND expirythreshold > 0')) { -- 2.39.5