Skip to content

Commit

Permalink
MDL-34109 quiz cron: change whitespace before applying the fix.
Browse files Browse the repository at this point in the history
This commit just changes the white-space, but does not change any of the
actual code. This is so that the commit I am about to make, which will
change the code, will be easier to understand.
  • Loading branch information
timhunt authored and danpoltawski committed Jul 2, 2012
1 parent dabab94 commit 592443f
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions mod/quiz/cronlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,19 @@ protected function get_list_of_overdue_attempts($processfrom, $processto) {
) group_by_results
JOIN {quiz_attempts} quiza ON quiza.id = group_by_results.attemptid
WHERE (state = 'inprogress' AND (:timenow1 > usertimeclose OR
:timenow2 > quiza.timestart + usertimelimit))
OR (state = 'overdue' AND (:timenow3 > graceperiod + usertimeclose OR
:timenow4 > graceperiod + quiza.timestart + usertimelimit))
WHERE (
state = 'inprogress' AND (
:timenow1 > usertimeclose OR
:timenow2 > quiza.timestart + usertimelimit
)
)
OR
(
state = 'overdue' AND (
:timenow3 > graceperiod + usertimeclose OR
:timenow4 > graceperiod + quiza.timestart + usertimelimit
)
)
ORDER BY course, quiz",

Expand Down

0 comments on commit 592443f

Please sign in to comment.