Permalink
Browse files

MDL-27483: Fix quiz repaginate enter in a endless loop

  • Loading branch information...
1 parent 020f0ff commit 25a5bd96f9b2064b82ea7d181db708a902da0da0 @tlevi tlevi committed Mar 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/locallib.php
View
@@ -324,7 +324,7 @@ function quiz_repaginate($layout, $perpage, $shuffle = false) {
$layout = str_replace(',0', '', $layout); // remove existing page breaks
$questions = explode(',', $layout);
//remove empty pages from beginning
- while (reset($questions) == '0') {
+ while (reset($questions) === '0') {
array_shift($questions);
}
if ($shuffle) {

0 comments on commit 25a5bd9

Please sign in to comment.