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

This commit is contained in:
Jon Marthaler
2014-08-27 11:11:11 -05:00
parent e95c5eed2c
commit 14a2ef282b
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -896,6 +896,8 @@ function assign_cron() {
$class::cron();
}
}
return true;
}
/**
+1 -1
View File
@@ -1576,7 +1576,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.