aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorFyorl <gaelreth@gmail.com>2012-08-20 21:47:29 +0100
committerFyorl <gaelreth@gmail.com>2012-08-20 21:47:29 +0100
commitb1239f1c1aca6a96ed3b470e1d386ec1d1024de7 (patch)
tree63677ffde2555fcb47b6738452a7c2d95942531e /phpBB
parent53aadd60a66c813db90aa1d54e649384679f2614 (diff)
downloadforums-b1239f1c1aca6a96ed3b470e1d386ec1d1024de7.tar
forums-b1239f1c1aca6a96ed3b470e1d386ec1d1024de7.tar.gz
forums-b1239f1c1aca6a96ed3b470e1d386ec1d1024de7.tar.bz2
forums-b1239f1c1aca6a96ed3b470e1d386ec1d1024de7.tar.xz
forums-b1239f1c1aca6a96ed3b470e1d386ec1d1024de7.zip
[feature/attach-dl] Changed $files_added checks
PHPBB3-11042
Diffstat (limited to 'phpBB')
-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 5563e34cda..b56d729a7b 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -392,7 +392,7 @@ else
$compress->close();
- if ($files_added > 0)
+ if ($files_added)
{
phpbb_increment_downloads($db, $attachment_ids);
$compress->download($store_name, $archive_name);
@@ -400,7 +400,7 @@ else
unlink($archive_path);
- if ($files_added < 1)
+ if (!$files_added)
{
// None of the attachments had a valid extension
$disallowed = implode($user->lang['COMMA_SEPARATOR'], $disallowed);