]> git.mjollnir.org Git - moodle.git/commitdiff
mod hotpot: fix undefined global variable $COURSE
authorgbateson <gbateson>
Sun, 9 Nov 2008 03:39:15 +0000 (03:39 +0000)
committergbateson <gbateson>
Sun, 9 Nov 2008 03:39:15 +0000 (03:39 +0000)
mod/hotpot/mod_form.php

index 7583d6680b2c14ff16cc71bd85a05bea1cda8b30..79a3fc440f8fda2c38df9c4fea1c9bcf4f125266 100644 (file)
@@ -266,7 +266,7 @@ class mod_hotpot_mod_form extends moodleform_mod {
     }
 
     function validation($data, $files) {
-        global $CFG, $USER, $DB;
+        global $CFG, $USER, $DB, $COURSE;
 
         $errors = parent::validation($data, $files);