From 2b34a377eabf5468ee80437960d57791946e772d Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Mon, 5 May 2014 13:28:43 +0800 Subject: [PATCH] MDL-45201 recent_activity: Fix set type notice in recent activity form --- course/recent_form.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/course/recent_form.php b/course/recent_form.php index cfdbffae438..cc2750a7863 100644 --- a/course/recent_form.php +++ b/course/recent_form.php @@ -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'));