handle empty content error in core/image block

This commit is contained in:
2026-02-10 13:40:24 +00:00
parent ad19e59967
commit d8fe1e7649

View File

@@ -268,6 +268,8 @@ function core_details_modified($content, $block)
function core_image_modified($content, $block)
{
if(!$content) return '';
$dom = new \DomDocument();
$dom->strictErrorChecking = false;
@$dom->loadHTML($content);