From: Marcel Werk Date: Wed, 29 Jun 2022 13:26:29 +0000 (+0200) Subject: Fix missing check if conditions are available when adding a box X-Git-Tag: 5.5.0_RC_3~12 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b7baf63fdd0c92b2aa97ce887bfbe208796e6740;p=GitHub%2FWoltLab%2FWCF.git Fix missing check if conditions are available when adding a box --- 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}