From b02ad26015cd96bf5d78bab77521dc51ad9515e8 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Tue, 27 Jun 2023 22:16:30 +0200 Subject: [PATCH] [ticket/15687] Fix incorrect variable names thanks to copy & paste PHPBB3-15687 --- phpBB/includes/functions_posting.php | 2 +- phpBB/includes/message_parser.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 2a0ecd2b53..b46a8b2a45 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -873,7 +873,7 @@ function posting_gen_attachment_entry($attachment_data, &$filename_data, $show_a 'phpbb_storage_attachment', [ 'file' => (int) $attach_row['attach_id'], - 'filename' => $attachment['real_filename'], + 'filename' => $attach_row['real_filename'], ] ); diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php index 912769f70e..6b7fa8733c 100644 --- a/phpBB/includes/message_parser.php +++ b/phpBB/includes/message_parser.php @@ -1720,7 +1720,7 @@ class parse_message extends bbcode_firstpass 'phpbb_storage_attachment', [ 'file' => (int) $new_entry['attach_id'], - 'filename' => $attachment['real_filename'], + 'filename' => $new_entry['real_filename'], ] );