From b7baf63fdd0c92b2aa97ce887bfbe208796e6740 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 29 Jun 2022 15:26:29 +0200 Subject: [PATCH] Fix missing check if conditions are available when adding a box --- wcfsetup/install/files/acp/templates/boxAdd.tpl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/boxAdd.tpl b/wcfsetup/install/files/acp/templates/boxAdd.tpl index 42f32ecc0a..e5b39832d6 100644 --- a/wcfsetup/install/files/acp/templates/boxAdd.tpl +++ b/wcfsetup/install/files/acp/templates/boxAdd.tpl @@ -475,9 +475,11 @@ - {foreach from=$groupedConditionObjectTypes['com.woltlab.wcf.page'] item='pageConditionObjectType'} - {@$pageConditionObjectType->getProcessor()->getHtml()} - {/foreach} + {if $groupedConditionObjectTypes['com.woltlab.wcf.page']|isset} + {foreach from=$groupedConditionObjectTypes['com.woltlab.wcf.page'] item='pageConditionObjectType'} + {@$pageConditionObjectType->getProcessor()->getHtml()} + {/foreach} + {/if} {if $groupedConditionObjectTypes['com.woltlab.wcf.pointInTime']|isset} -- 2.20.1