This commit is contained in:
Andrew Nicols
2023-03-09 10:09:29 +08:00
+2 -2
View File
@@ -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)) {