Skip to content

Guard missing prettyblock content in Smarty template#952

Merged
CySSoO merged 1 commit intomasterfrom
cyssoo/fix-undefined-array-key-warning-in-template
Feb 5, 2026
Merged

Guard missing prettyblock content in Smarty template#952
CySSoO merged 1 commit intomasterfrom
cyssoo/fix-undefined-array-key-warning-in-template

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Feb 5, 2026

Motivation

  • Prevent PHP notices about an undefined content key when rendering PrettyBlocks states by only outputting state content if it exists.

Description

  • Update views/templates/hook/prettyblocks/prettyblock_everblock.tpl to wrap {$state.content nofilter} with {if isset($state.content)}...{/if} so state content is rendered only when present.

Testing

  • No automated tests were run for this change.

Codex Task

@CySSoO CySSoO merged commit 576e826 into master Feb 5, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant