mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/attach-dl] Changed $files_added checks
PHPBB3-11042
This commit is contained in:
parent
53aadd60a6
commit
b1239f1c1a
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue