mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-51250 course: No function returns in empty()
This commit is contained in:
parent
05e6215c48
commit
d1583d8e9c
@ -112,7 +112,8 @@ class editsection_form extends moodleform {
|
||||
$data = parent::get_data();
|
||||
if ($data !== null) {
|
||||
$editoroptions = $this->_customdata['editoroptions'];
|
||||
if (!empty($data->usedefaultname) || empty(trim($data->name))) {
|
||||
$trimmedname = $data->name;
|
||||
if (!empty($data->usedefaultname) || empty($trimmedname)) {
|
||||
$data->name = null;
|
||||
}
|
||||
$data = file_postupdate_standard_editor($data, 'summary', $editoroptions,
|
||||
|
Loading…
x
Reference in New Issue
Block a user