From b1239f1c1aca6a96ed3b470e1d386ec1d1024de7 Mon Sep 17 00:00:00 2001 From: Fyorl Date: Mon, 20 Aug 2012 21:47:29 +0100 Subject: [PATCH] [feature/attach-dl] Changed $files_added checks PHPBB3-11042 --- phpBB/download/file.php | 4 ++-- 1 file 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);