]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed call to required_param()
authorgustav_delius <gustav_delius>
Wed, 5 Apr 2006 07:39:32 +0000 (07:39 +0000)
committergustav_delius <gustav_delius>
Wed, 5 Apr 2006 07:39:32 +0000 (07:39 +0000)
mod/quiz/index.php

index 233acb3d9f2276220119f65e15ee306e530fbf56..cd3ce6a3dd667f3eccacf844f4b98c53c1fef0c1 100644 (file)
@@ -11,7 +11,7 @@
     require_once("../../config.php");
     require_once("locallib.php");
 
-    require_variable($id);   // course
+    $id = required_param('id', PARAM_INT);
 
     if (! $course = get_record("course", "id", $id)) {
         error("Course ID is incorrect");