aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/download/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index ae44641852..4b19348bac 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -333,8 +333,8 @@ else
if ($attachments && sizeof($attachments) < 2)
{
+ $attachment = current($attachments);
$attachments = false;
- $attachment = $attachments[0];
}
if ($attachment)