From: tjhunt Date: Thu, 10 Jul 2008 17:31:12 +0000 (+0000) Subject: MDL-15452 - Fix regressions introduced by my recent work on this bug and its children... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=793f3a0e69484c0db36b50669284ca9f663e54b3;p=moodle.git MDL-15452 - Fix regressions introduced by my recent work on this bug and its children. Thanks to Paul Johnson for his testing. --- 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();