fixed warning message.

This commit is contained in:
CBS Information System 2021-07-20 11:33:37 +09:00
parent eab844788a
commit 3df4af32a5

View File

@ -39,6 +39,7 @@
if (!is_user_logged_in()) { if (!is_user_logged_in()) {
$forumid = (isset($forum['forumid'])) ? $forum['forumid'] : 0; $forumid = (isset($forum['forumid'])) ? $forum['forumid'] : 0;
$topicid = (isset($topic['topicid'])) ? $topic['topicid'] : 0; $topicid = (isset($topic['topicid'])) ? $topic['topicid'] : 0;
$postid = wpforo_bigintval($post['postid']);
$is_topic = (bool) wpfval($post, 'is_first_post'); $is_topic = (bool) wpfval($post, 'is_first_post');
$diff = current_time( 'timestamp', 1 ) - strtotime($post['created']); $diff = current_time( 'timestamp', 1 ) - strtotime($post['created']);
if (WPF()->perm->forum_can(($is_topic ? 'dt' : 'dr' ), $forumid) if (WPF()->perm->forum_can(($is_topic ? 'dt' : 'dr' ), $forumid)