Fix fatal error when parent comment is not defined

This commit is contained in:
Kijin Sung 2025-03-01 12:07:24 +09:00
parent 7fe2523f0e
commit bbd33e53ca

View file

@ -737,7 +737,7 @@ class CommentModel extends Comment
// generate a list
$list[$comment_srl] = $source_list[$i];
if($parent_srl)
if($parent_srl && isset($list[$parent_srl]))
{
$list[$parent_srl]->child[] = &$list[$comment_srl];
}