mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-17 06:07:12 +01:00
Update show_thread.php
This commit is contained in:
@@ -14,7 +14,7 @@ require __DIR__ . '/base.php';
|
|||||||
|
|
||||||
$links_to_pages = '';
|
$links_to_pages = '';
|
||||||
$thread_id = (int) $_REQUEST['id'];
|
$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();
|
$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'])) {
|
if(empty($thread_starter['name'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user