1. 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>"

Discussion in 'XenForo Development Discussions' started by Marcus, Oct 15, 2015.

  1. Marcus

    Marcus Well-Known Member

    Is this correct behavior? Or maybe this is a bug?

    template returns "<ul> </ul>" when there are no threads to display.
  2. Chris D

    Chris D XenForo Developer Staff Member

    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:
    <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" />
    Marcus likes this.
  3. Marcus

    Marcus Well-Known Member

    This is very logical and better than embed the sidebar_new_posts template within a contentcheck.

Share This Page