Skip to content
Browse files

Fix for question numbering provided by razzor, bug 3807

  • Loading branch information...
1 parent 68bdb28 commit a8181107ebb4a0ac9ab153ce590aeaf3e83454b8 gustav_delius committed Jul 25, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/locallib.php
View
2 mod/quiz/locallib.php
@@ -1902,7 +1902,7 @@ function quiz_first_questionnumber($quizlayout, $pagelayout) {
// this works by finding all the questions from the quizlayout that
// come before the current page and then adding up their lengths.
global $CFG;
- $start = strpos($quizlayout, $pagelayout)-3;
+ $start = strpos($quizlayout, ','.$pagelayout.',')-2;
if ($start > 0) {
$prevlist = substr($quizlayout, 0, $start);
return get_field_sql("SELECT sum(length)+1 FROM {$CFG->prefix}quiz_questions

0 comments on commit a818110

Please sign in to comment.
Something went wrong with that request. Please try again.