From 4fcea9b1af84fb9aa640b132a4316b459c66d418 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 21 Dec 2023 00:31:23 +0700 Subject: [PATCH] Updated --- search.php | 2 +- viewforum.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/search.php b/search.php index 66c8b7a8..0bfed5f0 100644 --- a/search.php +++ b/search.php @@ -826,7 +826,7 @@ else 'STATUS' => $topic['topic_status'], 'TYPE' => $topic['topic_type'], 'DL' => ($topic['topic_dl_type'] == TOPIC_DL_TYPE_DL), - 'POLL' => $topic['topic_vote'], + 'POLL' => !IS_GUEST && $topic['topic_vote'], 'DL_CLASS' => isset($topic['dl_status']) ? $dl_link_css[$topic['dl_status']] : '', 'TOPIC_AUTHOR' => profile_url(array('username' => $topic['first_username'], 'user_id' => $topic['first_user_id'], 'user_rank' => $topic['first_user_rank'])), diff --git a/viewforum.php b/viewforum.php index 8c569a35..20cd6aed 100644 --- a/viewforum.php +++ b/viewforum.php @@ -502,7 +502,7 @@ foreach ($topic_rowset as $topic) 'STATUS' => $topic['topic_status'], 'TYPE' => $topic['topic_type'], 'DL' => ($topic['topic_dl_type'] == TOPIC_DL_TYPE_DL && !$forum_data['allow_reg_tracker']), - 'POLL' => $topic['topic_vote'], + 'POLL' => !IS_GUEST && $topic['topic_vote'], 'DL_CLASS' => isset($topic['dl_status']) ? $dl_link_css[$topic['dl_status']] : '', 'TOPIC_AUTHOR' => profile_url(array('username' => str_short($topic['first_username'], 15), 'user_id' => $topic['first_user_id'], 'user_rank' => $topic['first_user_rank'])),