mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Update viewtopic.php
This commit is contained in:
parent
7a06956111
commit
fd3f7021a3
1 changed files with 1 additions and 1 deletions
|
@ -449,7 +449,7 @@ $sel_post_order_ary = [
|
|||
$lang['NEWEST_FIRST'] => 'desc'
|
||||
];
|
||||
|
||||
$topic_has_poll = ($t_data['topic_vote'] && !IS_GUEST);
|
||||
$topic_has_poll = $t_data['topic_vote'];
|
||||
$poll_time_expired = ($t_data['topic_time'] < TIMENOW - $bb_cfg['poll_max_days'] * 86400);
|
||||
$can_manage_poll = ($t_data['topic_poster'] == $userdata['user_id'] || $is_auth['auth_mod']);
|
||||
$can_add_poll = ($can_manage_poll && !$topic_has_poll && !$poll_time_expired && !$start);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue