fixed warning message.
This commit is contained in:
parent
eab844788a
commit
3df4af32a5
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user