diff options
| author | Derky <derky@phpbb.com> | 2018-01-11 21:43:49 +0100 |
|---|---|---|
| committer | Derky <derky@phpbb.com> | 2018-01-11 21:43:49 +0100 |
| commit | d268a63812b81cd96af5c7f82a60de21da16cc75 (patch) | |
| tree | 002f10f986bde73eca09182ca134334e310ceb2d /phpBB/includes/functions_posting.php | |
| parent | 16bfb5bfc34d23b4051df271daca9a56330362b4 (diff) | |
| parent | 350d4f3e6d8a5e4e2910a046f0097b74d51861ef (diff) | |
| download | forums-d268a63812b81cd96af5c7f82a60de21da16cc75.tar forums-d268a63812b81cd96af5c7f82a60de21da16cc75.tar.gz forums-d268a63812b81cd96af5c7f82a60de21da16cc75.tar.bz2 forums-d268a63812b81cd96af5c7f82a60de21da16cc75.tar.xz forums-d268a63812b81cd96af5c7f82a60de21da16cc75.zip | |
Merge pull request #5082 from marc1706/ticket/15506
[ticket/15506] Assign attachrow_template_vars before foreach
Diffstat (limited to 'phpBB/includes/functions_posting.php')
| -rw-r--r-- | phpBB/includes/functions_posting.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 21f31c9fa2..78c66ac6b8 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -727,10 +727,11 @@ function posting_gen_attachment_entry($attachment_data, &$filename_data, $show_a // We display the posted attachments within the desired order. ($config['display_order']) ? krsort($attachment_data) : ksort($attachment_data); + $attachrow_template_vars = []; + foreach ($attachment_data as $count => $attach_row) { $hidden = ''; - $attachrow_template_vars = array(); $attach_row['real_filename'] = utf8_basename($attach_row['real_filename']); foreach ($attach_row as $key => $value) |
