mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-36778 course - prevent undefined index warnings
When logged in as a guest the mform didn't set userid.
This commit is contained in:
parent
f42c34a38a
commit
7b48acebaf
@ -98,6 +98,9 @@ class recent_form extends moodleform {
|
||||
|
||||
$mform->addElement('select', 'user', get_string('participants'), $options);
|
||||
$mform->setAdvanced('user');
|
||||
} else {
|
||||
// Default to no user.
|
||||
$mform->addElement('hidden', 'user', 0);
|
||||
}
|
||||
|
||||
$options = array(''=>get_string('allactivities'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user