Fix warnings in PHP 8.0 related to editor components

This commit is contained in:
Kijin Sung 2021-02-09 01:21:53 +09:00
parent c5ceafc841
commit c6f728cec6
4 changed files with 14 additions and 14 deletions

View file

@ -272,7 +272,7 @@ class editorController extends editor
if(!isset($xml_obj->attrs)) $xml_obj->attrs = new stdClass;
$xml_obj->attrs->{$m[1][$i]} = $m[2][$i];
}
$xml_obj->body = $match[4];
$xml_obj->body = $match[4] ?? null;
if(!$xml_obj->attrs->editor_component) return $match[0];