MDL-38883 calendar: fix missing setType
[moodle.git] / calendar / managesubscriptions_form.php
index a969fbd..769a5b5 100644 (file)
@@ -93,7 +93,7 @@ class calendar_addsubscription_form extends moodleform {
         }
 
         $mform->addElement('hidden', 'course');
-        $mform->addElement('hidden', 'sesskey', sesskey());
+        $mform->setType('course', PARAM_INT);
         $mform->addElement('submit', 'add', get_string('add'));
     }