Show
Run this test script on all supported databases:
<?php
require_once('config.php');
require_once($CFG->dirroot . '/mod/quiz/locallib.php');
require_once($CFG->dirroot . '/mod/quiz/cronlib.php');
class test_updater extends mod_quiz_overdue_attempt_updater {
public function get_list_of_overdue_attempts($processfrom, $processto) {
return parent::get_list_of_overdue_attempts($processfrom, $processto);
}
}
$overduehander = new test_updater();
$data = $overduehander->get_list_of_overdue_attempts(time(), time() - 1000000);
var_dump($data);
Make sure there are no SQL errors.