Permalink
Browse files

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

…OODLE_23_STABLE
  • Loading branch information...
2 parents 8aaf7ad + 2d04a1f commit 09e49e5c6edb384e0b51a498b7268ccfa617e8cc @danpoltawski danpoltawski committed Oct 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/quiz/cronlib.php
View
@@ -117,8 +117,8 @@ protected function get_list_of_overdue_attempts($processfrom, $processto) {
FROM {quiz_attempts} iquiza
JOIN {quiz} quiz ON quiz.id = iquiza.quiz
LEFT JOIN {quiz_overrides} quo ON quo.quiz = quiz.id AND quo.userid = iquiza.userid
- LEFT JOIN {quiz_overrides} qgo ON qgo.quiz = quiz.id
- LEFT JOIN {groups_members} gm ON gm.userid = iquiza.userid AND gm.groupid = qgo.groupid
+ LEFT JOIN {groups_members} gm ON gm.userid = iquiza.userid
+ LEFT JOIN {quiz_overrides} qgo ON qgo.quiz = quiz.id AND qgo.groupid = gm.groupid
WHERE iquiza.state IN ('inprogress', 'overdue')
AND iquiza.timemodified >= :processfrom

0 comments on commit 09e49e5

Please sign in to comment.