Fix #1525 error in PHP 8.0 in _arrangeComment if $list is null

This commit is contained in:
Kijin Sung 2020-12-25 23:09:51 +09:00
parent b7ffc2def5
commit 82e1625d0c

View file

@ -728,7 +728,7 @@ class commentModel extends comment
*/
public static function _arrangeComment(&$comment_list, $list, $depth, $parent = NULL)
{
if(!count($list))
if(!is_array($list) || !count($list))
{
return;
}