Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Small bugfixes ... (yawn)

  • Loading branch information...
commit 92a3c884f54e192d5dc6b4a6507c86671cd63bae 1 parent 7520988
authored October 15, 2002
10  mod/quiz/edit.php
@@ -120,15 +120,7 @@
120 120
     }
121 121
 
122 122
     if ($cat) { //-----------------------------------------------------------
123  
-        if ($catshow) {
124  
-            $modform->category = $cat;
125  
-        } else if ($catrename) {
126  
-            redirect("category.php?rename=$cat");
127  
-        } else if ($catdelete) {
128  
-            redirect("category.php?delete=$cat");
129  
-        } else if ($catnew) {
130  
-            redirect("category.php?new=$cat");
131  
-        }
  123
+        $modform->category = $cat;
132 124
     }
133 125
 
134 126
     $modform->sumgrades = 0;
4  mod/quiz/lib.php
@@ -358,7 +358,7 @@ function quiz_print_category_form($course, $current) {
358 358
     echo "<FORM METHOD=POST ACTION=edit.php>"; 
359 359
     echo "<B>$strcategory:</B>&nbsp;";
360 360
     choose_from_menu($categories, "cat", "$current");
361  
-    echo "<INPUT TYPE=submit NAME=catshow VALUE=\"$strshow\">";
  361
+    echo "<INPUT TYPE=submit VALUE=\"$strshow\">";
362 362
     echo "</FORM>";
363 363
     echo "</TD><TD align=right>";
364 364
     echo "<FORM METHOD=GET ACTION=category.php>"; 
@@ -373,7 +373,7 @@ function quiz_get_all_question_grades($questionlist, $quizid) {
373 373
 // Given a list of question IDs, finds grades or invents them to 
374 374
 // create an array of matching grades
375 375
 
376  
-    $questions = get_records_sql("SELECT * FROM quiz_question_grades 
  376
+    $questions = get_records_sql("SELECT question,grade FROM quiz_question_grades 
377 377
                                   WHERE quiz = '$quizid' 
378 378
                                     AND question IN ($questionlist)");
379 379
 

0 notes on commit 92a3c88

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