Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f1d8f2
)
MDL-36778 course - prevent undefined index warnings
author
Dan Poltawski
<dan@moodle.com>
Fri, 30 Nov 2012 04:15:51 +0000
(12:15 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Fri, 30 Nov 2012 04:28:56 +0000
(12:28 +0800)
When logged in as a guest the mform didn't set userid.
course/recent_form.php
patch
|
blob
|
blame
|
history
diff --git
a/course/recent_form.php
b/course/recent_form.php
index
dc7fa19
..
5f35a57
100644
(file)
--- a/
course/recent_form.php
+++ b/
course/recent_form.php
@@
-99,6
+99,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'));