MDL-45201 recent_activity: Fix set type notice in recent activity form

This commit is contained in:
Ankit Agarwal
2014-05-05 13:31:07 +08:00
parent 9257294cf2
commit 6043b93ffe
+2
View File
@@ -101,6 +101,8 @@ class recent_form extends moodleform {
} else {
// Default to no user.
$mform->addElement('hidden', 'user', 0);
$mform->setType('user', PARAM_INT);
$mform->setConstant('user', 0);
}
$options = array(''=>get_string('allactivities'));