[feature/attach-dl] Changed $files_added checks

PHPBB3-11042
This commit is contained in:
Fyorl 2012-08-20 21:47:29 +01:00
parent 53aadd60a6
commit b1239f1c1a

View file

@ -392,7 +392,7 @@ else
$compress->close(); $compress->close();
if ($files_added > 0) if ($files_added)
{ {
phpbb_increment_downloads($db, $attachment_ids); phpbb_increment_downloads($db, $attachment_ids);
$compress->download($store_name, $archive_name); $compress->download($store_name, $archive_name);
@ -400,7 +400,7 @@ else
unlink($archive_path); unlink($archive_path);
if ($files_added < 1) if (!$files_added)
{ {
// None of the attachments had a valid extension // None of the attachments had a valid extension
$disallowed = implode($user->lang['COMMA_SEPARATOR'], $disallowed); $disallowed = implode($user->lang['COMMA_SEPARATOR'], $disallowed);