]> git.mjollnir.org Git - moodle.git/commitdiff
Fixing stupid typos from previous commit
authorgustav_delius <gustav_delius>
Wed, 5 Apr 2006 20:02:37 +0000 (20:02 +0000)
committergustav_delius <gustav_delius>
Wed, 5 Apr 2006 20:02:37 +0000 (20:02 +0000)
question/showbank.php

index 9af6e255dbe815ed39ed8e4b1854f54a094a17c1..6aa27b86db45d43b7a580a7d95711ef4614ddd4f 100644 (file)
@@ -40,7 +40,7 @@
 
     if (isset($_REQUEST['move']) and confirm_sesskey()) { /// Move selected questions to new category
         $tocategoryid = required_param('category', PARAM_INT);
-        if (!$tocategory = get_record('question_categories', 'id', $tocategoryid])) {
+        if (!$tocategory = get_record('question_categories', 'id', $tocategoryid)) {
             error('Invalid category');
         }
         if (!isteacheredit($tocategory->course)) {
     }
 
     if (isset($_REQUEST['cat'])) { /// coming from category selection drop-down menu
-        $SESSION->questioncat = required_param['cat', PARAM_INT];
+        $SESSION->questioncat = required_param('cat', PARAM_INT);
         $page = 0;
         $SESSION->questionpage = 0;
     }