Fix count() error in PHP 8.0 in content widget

https://xetown.com/questions/1508131
This commit is contained in:
Kijin Sung 2021-01-14 01:14:27 +09:00
parent 03e5909036
commit 57e702daea
2 changed files with 11 additions and 15 deletions

View file

@ -420,8 +420,7 @@ class commentModel extends comment
$comment_list = array($comment_list);
}
$comment_count = count($comment_list);
$result = [];
foreach($comment_list as $key => $attribute)
{
if(!$attribute->comment_srl)