This commit is contained in:
Roman Kelesidis 2023-08-24 22:40:38 +07:00
parent 04ea6749dd
commit a8001b0dd8
2 changed files with 4 additions and 0 deletions

View File

@ -160,6 +160,8 @@ if ($post_info = DB()->fetch_row($sql))
$forum_id = $post_info['forum_id'];
$forum_name = $post_info['forum_name'];
set_die_append_msg($forum_id);
$is_auth = auth(AUTH_ALL, $forum_id, $userdata, $post_info);
if ($post_info['forum_status'] == FORUM_LOCKED && !$is_auth['auth_mod'])

View File

@ -139,6 +139,8 @@ if ($topic_attachment)
));
}
set_die_append_msg($forum_id);
// Find newest post
if (($next_topic_id || @$_GET['view'] === 'newest') && !IS_GUEST && $topic_id)
{