Skip to content

Commit

Permalink
quiz: MDL-18637 fix 1.9-style DB code merged to HEAD by mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhunt committed Mar 24, 2009
1 parent 747bc26 commit 72b9b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/lib.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit 72b9b78

Please sign in to comment.