mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Merge branch 'MDL-78235-master' of https://github.com/lameze/moodle
This commit is contained in:
commit
e8497456c8
@ -258,7 +258,7 @@ class profile_field_base {
|
||||
* @param MoodleQuickForm $mform instance of the moodleform class
|
||||
*/
|
||||
public function edit_field_set_default($mform) {
|
||||
if (!empty($this->field->defaultdata)) {
|
||||
if (isset($this->field->defaultdata)) {
|
||||
$mform->setDefault($this->inputname, $this->field->defaultdata);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user