diff --git a/styles/templates/default/viewtopic_poll.tpl b/styles/templates/default/viewtopic_poll.tpl index 02fe6074..a6d63995 100644 --- a/styles/templates/default/viewtopic_poll.tpl +++ b/styles/templates/default/viewtopic_poll.tpl @@ -127,10 +127,8 @@ function html2text (str)
-
[ {L_SUBMIT_VOTE} ]
-
[ {L_NEW_POLL_END} ]
diff --git a/viewtopic.php b/viewtopic.php index 01d78ec2..fe8c8522 100644 --- a/viewtopic.php +++ b/viewtopic.php @@ -538,7 +538,7 @@ $sel_post_order_ary = array( $lang['NEWEST_FIRST'] => 'desc', ); -$topic_has_poll = ($t_data['topic_vote']); +$topic_has_poll = ($t_data['topic_vote'] && !IS_GUEST); $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);