From a8c65a7ab9f38b4dccb6fbe64fc374802a18104d Mon Sep 17 00:00:00 2001 From: slawkens Date: Tue, 7 Feb 2023 10:54:58 +0100 Subject: [PATCH] Update show_thread.php --- system/pages/forum/show_thread.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/pages/forum/show_thread.php b/system/pages/forum/show_thread.php index c6f8a1af..e6c8f926 100644 --- a/system/pages/forum/show_thread.php +++ b/system/pages/forum/show_thread.php @@ -14,7 +14,7 @@ require __DIR__ . '/base.php'; $links_to_pages = ''; $thread_id = (int) $_REQUEST['id']; -$_page = (int) (isset($_REQUEST['page']) ? $_REQUEST['page'] : 0); +$_page = (int) ($_REQUEST['page'] ?? 0); $thread_starter = $db->query("SELECT `players`.`name`, `" . FORUM_TABLE_PREFIX . "forum`.`post_topic`, `" . FORUM_TABLE_PREFIX . "forum`.`section` FROM `players`, `" . FORUM_TABLE_PREFIX . "forum` WHERE `" . FORUM_TABLE_PREFIX . "forum`.`first_post` = ".(int) $thread_id." AND `" . FORUM_TABLE_PREFIX . "forum`.`id` = `" . FORUM_TABLE_PREFIX . "forum`.`first_post` AND `players`.`id` = `" . FORUM_TABLE_PREFIX . "forum`.`author_guid` LIMIT 1")->fetch(); if(empty($thread_starter['name'])) {