Skip to content
Browse files

MDL-31157 quiz cron: timenow was not being initialised

  • Loading branch information...
1 parent f70f6e9 commit d8b06a25b2d9b4605d343881a54546cef506acc9 @timhunt timhunt committed Jan 13, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/quiz/lib.php
View
1 mod/quiz/lib.php
@@ -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 d8b06a2

Please sign in to comment.
Something went wrong with that request. Please try again.