From 52c931a8b653791330e76ef1e6e902b27a3f2f81 Mon Sep 17 00:00:00 2001 From: 3D-I Date: Sun, 10 Oct 2021 13:32:31 +0200 Subject: [PATCH] [ticket/16888] Add the list of allowed files in the attachment tab Request mixed content using shorthand Ternary PHPBB3-16888 --- phpBB/includes/functions_posting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index e1cfb3145e..30e7cbf451 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -821,7 +821,7 @@ function posting_gen_attachment_entry($attachment_data, &$filename_data, $show_a global $cache, $request; // $forum_id when FALSE check for PMs if INT then check for forum id (topics|posts) - $forum_id = $request->variable('f', 0) ? $request->variable('f', 0) : false; + $forum_id = $request->variable('f', 0) ?: false; $allowed_attachments = array_keys($cache->obtain_attach_extensions($forum_id)['_allowed_']); // Some default template variables