diff --git a/modules/comment/comment.model.php b/modules/comment/comment.model.php index 2be007f07..67fb49729 100644 --- a/modules/comment/comment.model.php +++ b/modules/comment/comment.model.php @@ -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]; }