Merge branch 'MDL-25884' of git://github.com/timhunt/moodle
authorSam Hemelryk <sam@moodle.com>
Mon, 24 Jan 2011 02:20:22 +0000 (10:20 +0800)
committerSam Hemelryk <sam@moodle.com>
Mon, 24 Jan 2011 02:20:22 +0000 (10:20 +0800)
mod/quiz/index.php

index 631f95b..22e1229 100644 (file)
@@ -92,8 +92,8 @@
                 SELECT qg.quiz, qg.grade
                 FROM {quiz_grades} qg
                 JOIN {quiz} q ON q.id = qg.quiz
-                WHERE q.course = ?',
-                $course->id);
+                WHERE q.course = ? AND qg.userid = ?',
+                array($course->id, $USER->id));
     }
 
     $table = new html_table();