MDL-46539 assign calendar: Fix lastcron value for assign cron

This commit is contained in:
Jon Marthaler 2014-08-22 08:48:00 -05:00
parent e609e6cf02
commit abd0f0aec6
2 changed files with 3 additions and 1 deletions

View File

@ -906,6 +906,8 @@ function assign_cron() {
$class::cron();
}
}
return true;
}
/**

View File

@ -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.