From afc06057704fd46bd642c359ebffb4362c6db4ab Mon Sep 17 00:00:00 2001 From: Steve Ross Date: Tue, 10 Feb 2026 13:40:24 +0000 Subject: [PATCH] handle empty content error in core/image block --- app/blocks.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/blocks.php b/app/blocks.php index 0f96a985..fc7c0df0 100644 --- a/app/blocks.php +++ b/app/blocks.php @@ -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);