From f3147a1c14109ce7ba3f0f864ed523e57f8b8181 Mon Sep 17 00:00:00 2001 From: Cyssoo Date: Thu, 5 Feb 2026 10:23:00 +0100 Subject: [PATCH] Guard missing content in prettyblock extra states --- views/templates/hook/prettyblocks/prettyblock_everblock.tpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/views/templates/hook/prettyblocks/prettyblock_everblock.tpl b/views/templates/hook/prettyblocks/prettyblock_everblock.tpl index ed9d9d9d..ce9f0d54 100644 --- a/views/templates/hook/prettyblocks/prettyblock_everblock.tpl +++ b/views/templates/hook/prettyblocks/prettyblock_everblock.tpl @@ -33,8 +33,10 @@ "> {$state.content nofilter} {if isset($block.extra.states) && $block.extra.states} - {foreach $block.extra.states as $state} - {$state.content nofilter} + {foreach $block.extra.states as $extra_state} + {if isset($extra_state.content)} + {$extra_state.content nofilter} + {/if} {/foreach} {/if}