mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-21 16:13:00 +00:00
Merge pull request #247 from neapsix/patch-comments-0
Fix undefined var when posting new top-level comment
This commit is contained in:
commit
690f93c96b
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ register_module([
|
|||
"timestamp" => time(),
|
||||
"page" => $env->page,
|
||||
"user" => $env->user,
|
||||
"reply_depth" => $comment_thread !== null ? count($comment_thread) : 0,
|
||||
"reply_depth" => isset($comment_thread) ? count($comment_thread) : 0,
|
||||
"comment_id" => $new_comment->id
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue