From 3df4af32a53c39f8b84e459ed4de0385c9a7dbc6 Mon Sep 17 00:00:00 2001 From: NIU Administrator Date: Tue, 20 Jul 2021 11:33:37 +0900 Subject: [PATCH] fixed warning message. --- wpforo/layouts/2/post.php | 1 + 1 file changed, 1 insertion(+) 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)