mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-78235 userprofile: Check for defaultdata with isset().
This commit is contained in:
parent
a1d5d1b2f7
commit
4dffe0f23b
@ -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