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