Fix strict count() behavior in PHP 7.2

This commit is contained in:
Kijin Sung 2017-12-01 01:49:20 +09:00
parent 6f35f5bafc
commit 3992b4b5bc
6 changed files with 8 additions and 9 deletions

View file

@ -77,7 +77,7 @@ class commentItem extends BaseObject
$this->adds($attribute);
// define vars on the object for backward compatibility of skins
if(count($attribute))
if(countobj($attribute))
{
foreach($attribute as $key => $val)
{