mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix #1525 error in PHP 8.0 in _arrangeComment if $list is null
This commit is contained in:
parent
b7ffc2def5
commit
82e1625d0c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue