From 793f3a0e69484c0db36b50669284ca9f663e54b3 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Thu, 10 Jul 2008 17:31:12 +0000 Subject: [PATCH] MDL-15452 - Fix regressions introduced by my recent work on this bug and its children. Thanks to Paul Johnson for his testing. --- mod/quiz/attemptlib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/quiz/attemptlib.php b/mod/quiz/attemptlib.php index 7d2169a158..7964ecb069 100644 --- a/mod/quiz/attemptlib.php +++ b/mod/quiz/attemptlib.php @@ -192,10 +192,10 @@ class quiz { * @return array the reqested list of question ids. */ public function get_question_ids($page = 'all') { - if ($page == 'all') { + if ($page === 'all') { $list = $this->questionids; } else { - $list = $this->pagequestionids[$page]; + $list = $this->pagequestionids[0]; } // Clone the array, so our private arrays cannot be modified. $result = array(); -- 2.39.5