mirror of
https://github.com/moodle/moodle.git
synced 2025-06-02 06:05:31 +02:00
quiz: MDL-18637 fix 1.9-style DB code merged to HEAD by mistake.
This commit is contained in:
parent
747bc260c8
commit
72b9b78682
@ -224,7 +224,7 @@ function quiz_user_outline($course, $user, $mod, $quiz) {
|
||||
|
||||
$result = new stdClass;
|
||||
$result->info = get_string('grade') . ': ' . $grade . '/' . $quiz->grade;
|
||||
$result->time = get_field('quiz_attempts', 'MAX(timefinish)', 'userid', $user->id, 'quiz', $quiz->id);
|
||||
$result->time = $DB->get_field('quiz_attempts', 'MAX(timefinish)', array('userid' => $user->id, 'quiz' => $quiz->id));
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user