Merge branch 'MDL-77539' of https://github.com/paulholden/moodle
This commit is contained in:
@@ -98,8 +98,8 @@ class blog_edit_external_form extends moodleform {
|
||||
global $CFG, $COURSE;
|
||||
$mform =& $this->_form;
|
||||
|
||||
$name = trim($mform->getElementValue('name'));
|
||||
$description = trim($mform->getElementValue('description'));
|
||||
$name = trim($mform->getElementValue('name') ?? '');
|
||||
$description = trim($mform->getElementValue('description') ?? '');
|
||||
$url = $mform->getElementValue('url');
|
||||
|
||||
if (empty($name) || empty($description)) {
|
||||
|
||||
Reference in New Issue
Block a user