-
Bug
-
Resolution: Fixed
-
Minor
-
2.4.3, 2.4.4, 2.5, 2.5.1
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MDL-39653-master -
-
2
-
BACKEND Sprint 5
Moodle 2.4.3
Line 220 of /enrol/imsenterprise/lib.php
This IF block should NOT run if the file does not exists or if the file is not new. When the file does not exist or is not new, an error is thrown at line 220 because $timeelapsed is not set. This causes the entire Moodle cron job to fail.
Suggest either moving that block within the IF block above, or changing to:
if (!empty($mailadmins) && file_exists($filename) && $fileisnew) {