mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 08:42:15 +09:00
Fix fatal error when parent comment is not defined
This commit is contained in:
parent
7fe2523f0e
commit
bbd33e53ca
1 changed files with 1 additions and 1 deletions
|
|
@ -737,7 +737,7 @@ class CommentModel extends Comment
|
||||||
// generate a list
|
// generate a list
|
||||||
$list[$comment_srl] = $source_list[$i];
|
$list[$comment_srl] = $source_list[$i];
|
||||||
|
|
||||||
if($parent_srl)
|
if($parent_srl && isset($list[$parent_srl]))
|
||||||
{
|
{
|
||||||
$list[$parent_srl]->child[] = &$list[$comment_srl];
|
$list[$parent_srl]->child[] = &$list[$comment_srl];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue