• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

xen:contentcheck returns true for "<ul> </ul>"

Marcus

Well-known member
#1
Is this correct behavior? Or maybe this is a bug?

sidebar_new_posts
template returns "<ul> </ul>" when there are no threads to display.
 

Chris D

XenForo developer
Staff member
#2
There isn't a contentcheck in place there. The template shouldn't be called at all if there are no threads. From the forum_list template:
Code:
<xen:if is="{$threads}">
    <div class="section threadList">
        <div class="secondaryContent">
            <h3><a href="{xen:link find-new/posts}">{xen:phrase new_posts}</a></h3>
            <xen:include template="sidebar_new_posts" />
        </div>
    </div>
</xen:if>