Fixed empty <span> tag
authorMarcel Werk <burntime@woltlab.com>
Mon, 28 Oct 2019 15:05:59 +0000 (16:05 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 28 Oct 2019 15:05:59 +0000 (16:05 +0100)
com.woltlab.wcf/templates/boxArticleList.tpl

index e71772ec0589bbae1d1a31df59d3ea79e905300d..3e3b1733213d2f37342002bb2541d38bc4ae8285 100644 (file)
@@ -2,8 +2,8 @@
        <ul class="sidebarItemList">
                {foreach from=$boxArticleList item=boxArticle}
                        <li>
-                               <a href="{$boxArticle->getLink()}" class="box64">
-                                       <span>{if $boxArticle->getTeaserImage()}{@$boxArticle->getTeaserImage()->getElementTag(64)}{/if}</span>
+                               <a href="{$boxArticle->getLink()}"{if $boxArticle->getTeaserImage()} class="box64"{/if}>
+                                       {if $boxArticle->getTeaserImage()}<span>{@$boxArticle->getTeaserImage()->getElementTag(64)}</span>{/if}
                                        
                                        <div>
                                                <h3>{$boxArticle->getTitle()}</h3>