Skip to content

Commit

Permalink
Merge branch 'MDL-77539' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Mar 9, 2023
2 parents 7b6a00d + 76a48c8 commit 29a48b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blog/external_blog_edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ public function definition_after_data() {
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)) {
Expand Down

0 comments on commit 29a48b5

Please sign in to comment.