Fix missing check if conditions are available when adding a box
authorMarcel Werk <burntime@woltlab.com>
Wed, 29 Jun 2022 13:26:29 +0000 (15:26 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 29 Jun 2022 13:26:29 +0000 (15:26 +0200)
wcfsetup/install/files/acp/templates/boxAdd.tpl

index 42f32ecc0ad84637f56f36993125aac214431c08..e5b39832d6b175c5059d867aafd81497c92b74a9 100644 (file)
                                        </dd>
                                </dl>
 
-                               {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}
                        </section>
 
                        {if $groupedConditionObjectTypes['com.woltlab.wcf.pointInTime']|isset}