Merge branch 'MDL-46539-fix-28' of https://github.com/jmarthaler/moodle

This commit is contained in:
Marina Glancy
2014-09-01 14:36:04 +08:00
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -906,6 +906,8 @@ function assign_cron() {
$class::cron();
}
}
return true;
}
/**
+1 -1
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.