From: Jens Hausdorf Date: Wed, 18 Oct 2017 10:14:08 +0000 (+0200) Subject: fix php 7.2 compatibility problem (#2436) X-Git-Tag: 3.1.0_Beta_2~28 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5ac58e903ad3be891d9232ba8986d225e368a1b9;p=GitHub%2FWoltLab%2FWCF.git fix php 7.2 compatibility problem (#2436) * fix php 7.2 compatibility problem * new approach fixing the problem --- diff --git a/com.woltlab.wcf/templates/article.tpl b/com.woltlab.wcf/templates/article.tpl index db0a6d04b6..b64ceb5e0d 100644 --- a/com.woltlab.wcf/templates/article.tpl +++ b/com.woltlab.wcf/templates/article.tpl @@ -263,7 +263,7 @@ {/if} -{if $relatedArticles|count} +{if $relatedArticles !== null && $relatedArticles|count}