Fix PHP 7.2 compatibility of amp article template
authorMatthias Schmidt <gravatronics@live.com>
Sat, 23 Dec 2017 10:59:27 +0000 (11:59 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 23 Dec 2017 10:59:27 +0000 (11:59 +0100)
com.woltlab.wcf/templates/ampArticle.tpl

index 32ed4066cc68eb24049a79acdb157e872a83dff7..a9979f5ce7bad813293d0ce1847a30ba0d47935e 100644 (file)
@@ -86,7 +86,7 @@
        </section>
 {/hascontent}
 
-{if $relatedArticles|count}
+{if $relatedArticles !== null && $relatedArticles|count}
        {hascontent}
                <section class="section">
                        <h2 class="sectionTitle">{lang}wcf.article.relatedArticles{/lang}</h2>