diff --git a/wpforo/layouts/2/post.php b/wpforo/layouts/2/post.php index c357f90..2add197 100644 --- a/wpforo/layouts/2/post.php +++ b/wpforo/layouts/2/post.php @@ -39,6 +39,7 @@ if (!is_user_logged_in()) { $forumid = (isset($forum['forumid'])) ? $forum['forumid'] : 0; $topicid = (isset($topic['topicid'])) ? $topic['topicid'] : 0; + $postid = wpforo_bigintval($post['postid']); $is_topic = (bool) wpfval($post, 'is_first_post'); $diff = current_time( 'timestamp', 1 ) - strtotime($post['created']); if (WPF()->perm->forum_can(($is_topic ? 'dt' : 'dr' ), $forumid)