Skip to content

Commit

Permalink
MDL-20636 Another little bug found by Jamie.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Mar 30, 2011
1 parent e65f89b commit 8d13ea8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/quiz/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,8 @@ function quiz_update_all_final_grades($quiz) {

if (!empty($todelete)) {
list($test, $params) = $DB->get_in_or_equal($todelete);
$DB->delete_records_select('quiz_grades',
'quiz = ? AND userid ', array($quiz->id) + $params);
$DB->delete_records_select('quiz_grades', 'quiz = ? AND userid ' . $test,
array_merge(array($quiz->id), $params));
}
}

Expand Down

0 comments on commit 8d13ea8

Please sign in to comment.