aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download/file.php
diff options
context:
space:
mode:
authorFyorl <gaelreth@gmail.com>2012-08-04 14:10:26 +0100
committerFyorl <gaelreth@gmail.com>2012-08-04 14:10:26 +0100
commit20a2ceccbdbb47229750735bfcdf2a5d05353d95 (patch)
tree5a17c7b470a732fc439fb78adec2a073182c503a /phpBB/download/file.php
parent0cad61efbf5292e61c8ad73f7aa334854ecee25c (diff)
downloadforums-20a2ceccbdbb47229750735bfcdf2a5d05353d95.tar
forums-20a2ceccbdbb47229750735bfcdf2a5d05353d95.tar.gz
forums-20a2ceccbdbb47229750735bfcdf2a5d05353d95.tar.bz2
forums-20a2ceccbdbb47229750735bfcdf2a5d05353d95.tar.xz
forums-20a2ceccbdbb47229750735bfcdf2a5d05353d95.zip
[feature/attach-dl] Initialised arrays if they're used
PHPBB3-11042
Diffstat (limited to 'phpBB/download/file.php')
-rw-r--r--phpBB/download/file.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index 2346f9357c..f360132b0f 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -158,8 +158,8 @@ if (!$config['allow_attachments'] && !$config['allow_pm_attach'])
trigger_error('ATTACHMENT_FUNCTIONALITY_DISABLED');
}
-$attachment = false;
-$attachments = false;
+$attachment = ($download_id) ? array() : false;
+$attachments = ($topic_id || $post_id) ? array() : false;
if ($download_id)
{