MDL-34599 quiz attempts: more robust if page number out of range.
commitdcfdf468fc37fde8057dd63099681e455d182d9d
authorTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 27 Jul 2012 10:42:03 +0000 (27 11:42 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 27 Jul 2012 10:48:04 +0000 (27 11:48 +0100)
tree2e8eb041111715fafc6f4712644777364304cc53
parentdd9274c4fc7b7559bfd6bfec4db35ec90bbb8ee4
MDL-34599 quiz attempts: more robust if page number out of range.

Rather than throwing an exception, we should just show the first/last
page of the quiz if the page number is out-of-range.
mod/quiz/attempt.php
mod/quiz/attemptlib.php
mod/quiz/processattempt.php
mod/quiz/review.php