diff options
| author | Fyorl <gaelreth@gmail.com> | 2012-08-07 18:21:29 +0100 |
|---|---|---|
| committer | Fyorl <gaelreth@gmail.com> | 2012-08-07 18:21:29 +0100 |
| commit | c4655b32f35d5cd0c7637f33162c190786a48c4b (patch) | |
| tree | 0cc82c2c1fba514673bb298f8c29247bf294356b | |
| parent | 10f0fc07136e08a83b75a8c5ac3e4da28a513084 (diff) | |
| download | forums-c4655b32f35d5cd0c7637f33162c190786a48c4b.tar forums-c4655b32f35d5cd0c7637f33162c190786a48c4b.tar.gz forums-c4655b32f35d5cd0c7637f33162c190786a48c4b.tar.bz2 forums-c4655b32f35d5cd0c7637f33162c190786a48c4b.tar.xz forums-c4655b32f35d5cd0c7637f33162c190786a48c4b.zip | |
[feature/attach-dl] Fixed a bug with single attachments
PHPBB3-11042
| -rw-r--r-- | phpBB/download/file.php | 2 |
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) |
