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

This commit is contained in:
Ankit Agarwal 2014-05-05 13:28:43 +08:00
parent 0401143193
commit 2b34a377ea

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'));