Permalink
Browse files

MDL-36778 course - prevent undefined index warnings

When logged in as a guest the mform didn't set userid.
  • Loading branch information...
danpoltawski committed Nov 30, 2012
1 parent e4592b2 commit 0e19f8ed3bf14882ad5259713a184d2c79b855b0
Showing with 3 additions and 0 deletions.
  1. +3 −0 course/recent_form.php
View
@@ -99,6 +99,9 @@ function definition() {
$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'));

0 comments on commit 0e19f8e

Please sign in to comment.