fix php 7.2 compatibility problem (#2436)
authorJens Hausdorf <hello@jens-hausdorf.de>
Wed, 18 Oct 2017 10:14:08 +0000 (12:14 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 18 Oct 2017 10:14:08 +0000 (12:14 +0200)
* fix php 7.2 compatibility problem

* new approach fixing the problem

com.woltlab.wcf/templates/article.tpl

index db0a6d04b6b958697e056e1bade58c7d7b6a1bb1..b64ceb5e0d79243a609b944895f9ce227830b047 100644 (file)
        </div>
 {/if}
 
-{if $relatedArticles|count}
+{if $relatedArticles !== null && $relatedArticles|count}
        <section class="section relatedArticles">
                <h2 class="sectionTitle">{lang}wcf.article.relatedArticles{/lang}</h2>