Permalink
Browse files

Merge branch 'MDL-28227_20' of git://github.com/timhunt/moodle into M…

…OODLE_20_STABLE
  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Jul 11, 2011
2 parents 05deeaa + ac473cb commit dd8e61891791602deaab6795071fab08cf9baa6f
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/quiz/report/overview/report.php
@@ -616,7 +616,8 @@ function check_overall_grades($quiz, $userids=array(), $attemptids=array()) {
//not just those that have changed.
$sql = "SELECT qa2.* FROM {quiz_attempts} qa2 WHERE " .
"qa2.userid IN (SELECT DISTINCT userid FROM {quiz_attempts} WHERE $attemptsql) " .
- "AND qa2.timefinish > 0";
+ "AND qa2.timefinish > 0 AND qa2.quiz = ?";
+ $params[] = $quiz->id;
} else {
$sql = "SELECT * FROM {quiz_attempts} WHERE $attemptsql AND timefinish > 0";
}

0 comments on commit dd8e618

Please sign in to comment.