Permalink
Browse files

Merge branch 'MDL-31157_22' of git://github.com/timhunt/moodle into M…

…OODLE_22_STABLE
  • Loading branch information...
stronk7 committed Jan 16, 2012
2 parents a364362 + d8b06a2 commit 8b23f31909e963f58eaa164c884f8938139fe50e
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/quiz/lib.php
View
@@ -447,6 +447,7 @@ function quiz_cron() {
// The deal with any plugins that do it the legacy way.
mtrace("Starting legacy quiz reports");
+ $timenow = time();
if ($reports = $DB->get_records_select('quiz_reports', "cron > 0 AND ((? - lastcron) > cron)", array($timenow))) {
foreach ($reports as $report) {
$cronfile = "$CFG->dirroot/mod/quiz/report/$report->name/cron.php";

0 comments on commit 8b23f31

Please sign in to comment.