Skip to content

Commit

Permalink
Merge pull request #247 from neapsix/patch-comments-0
Browse files Browse the repository at this point in the history
Fix undefined var when posting new top-level comment
  • Loading branch information
sbrl authored Sep 5, 2024
2 parents 0b83e4b + ff43756 commit 690f93c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/feature-comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"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
]);
}
Expand Down

0 comments on commit 690f93c

Please sign in to comment.