diff --git a/modules/feature-comments.php b/modules/feature-comments.php index 32b68b8..afee724 100644 --- a/modules/feature-comments.php +++ b/modules/feature-comments.php @@ -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 ]); }