handle empty content error in core/image block

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

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);