Remove useless emptyness checks in index.tpl
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 10 Mar 2021 08:31:04 +0000 (09:31 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 10 Mar 2021 08:33:25 +0000 (09:33 +0100)
wcfsetup/install/files/acp/templates/index.tpl

index 90f20740152348902d9441591806de8f2bbd5ba4..f5ece6681ac70cc445a632518bdbdd215e09b670 100644 (file)
@@ -4,16 +4,12 @@
        <h1 class="contentTitle">{lang}wcf.global.acp{/lang}</h1>
 </header>
 
-{if !$evaluationExpired|empty}
-       {foreach from=$evaluationExpired item=$expiredApp}
-               <p class="error">{lang packageName=$expiredApp[packageName] isWoltLab=$expiredApp[isWoltLab] pluginStoreFileID=$expiredApp[pluginStoreFileID]}wcf.acp.package.evaluation.expired{/lang}</p>
-       {/foreach}
-{/if}
-{if !$evaluationPending|empty}
-       {foreach from=$evaluationPending key=$evaluationEndDate item=$pendingApps}
-               <div class="warning">{lang evaluationEndDate=$evaluationEndDate}wcf.acp.package.evaluation.pending{/lang}</div>
-       {/foreach}
-{/if}
+{foreach from=$evaluationExpired item=$expiredApp}
+       <p class="error">{lang packageName=$expiredApp[packageName] isWoltLab=$expiredApp[isWoltLab] pluginStoreFileID=$expiredApp[pluginStoreFileID]}wcf.acp.package.evaluation.expired{/lang}</p>
+{/foreach}
+{foreach from=$evaluationPending key=$evaluationEndDate item=$pendingApps}
+       <div class="warning">{lang evaluationEndDate=$evaluationEndDate}wcf.acp.package.evaluation.pending{/lang}</div>
+{/foreach}
 
 {if TMP_DIR !== WCF_DIR|concat:'tmp/'}
        <p class="error">{lang}wcf.acp.index.tmpBroken{/lang}</p>