diff --git a/mod/assign/lib.php b/mod/assign/lib.php index 11ce0b690d1..d48e52740bd 100644 --- a/mod/assign/lib.php +++ b/mod/assign/lib.php @@ -906,6 +906,8 @@ function assign_cron() { $class::cron(); } } + + return true; } /** diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index e07cb2cd572..4629d71e50e 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -1601,7 +1601,7 @@ class assign { // Only ever send a max of one days worth of updates. $yesterday = time() - (24 * 3600); $timenow = time(); - $lastcron = $DB->get_field('modules', 'lastcron', array('name'=>'mod_assign')); + $lastcron = $DB->get_field('modules', 'lastcron', array('name' => 'assign')); // Collect all submissions from the past 24 hours that require mailing. // Submissions are excluded if the assignment is hidden in the gradebook.