Skip to content

Commit

Permalink
Thanks @anyeor for previous fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Jul 11, 2023
1 parent 0d52978 commit 5f7a915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/pages/forum/new_thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
if(Forum::canPost($account_logged))
{
$players_from_account = $db->query('SELECT `players`.`name`, `players`.`id` FROM `players` WHERE `players`.`account_id` = '.(int) $account_logged->getId())->fetchAll();
$section_id = isset($_REQUEST['section_id']) ? $_REQUEST['section_id'] : null;
$section_id = $_REQUEST['section_id'] ?? null;
if($section_id !== null) {
echo '<a href="' . getLink('forum') . '">Boards</a> >> <a href="' . getForumBoardLink($section_id) . '">' . $sections[$section_id]['name'] . '</a> >> <b>Post new thread</b><br />';
if(isset($sections[$section_id]['name']) && Forum::hasAccess($section_id)) {
Expand Down

0 comments on commit 5f7a915

Please sign in to comment.