]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15452 - Fix regressions introduced by my recent work on this bug and its children...
authortjhunt <tjhunt>
Thu, 10 Jul 2008 17:31:12 +0000 (17:31 +0000)
committertjhunt <tjhunt>
Thu, 10 Jul 2008 17:31:12 +0000 (17:31 +0000)
mod/quiz/attemptlib.php

index 7d2169a1581bb6ead60d1fd4be4760cb13ac51f7..7964ecb069208071cd9fe8d75152d3d3266fbae2 100644 (file)
@@ -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();