aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download/file.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/download/file.php')
-rw-r--r--phpBB/download/file.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index 282708f846..c4d6c26152 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -327,8 +327,10 @@ else if ($download_id)
else
{
// sizeof($attachments) >= 1
-
- phpbb_download_handle_passworded_forum($db, $auth, $attachment['topic_id']);
+ if (!$attachment['in_message'])
+ {
+ phpbb_download_handle_passworded_forum($db, $auth, $attachment['topic_id']);
+ }
if (!class_exists('compress'))
{