mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update dl.php
This commit is contained in:
parent
a170d4d37c
commit
58086ecaa5
8
dl.php
8
dl.php
@ -213,9 +213,13 @@ if (!in_array($attachment['extension'], $allowed_extensions) && !IS_ADMIN)
|
||||
}
|
||||
|
||||
// Getting download mode by extension
|
||||
if (!$download_mode = intval(@$download_mode[$attachment['extension']]))
|
||||
if (isset($download_mode[$attachment['extension']]))
|
||||
{
|
||||
bb_die('Incorrect download mode');
|
||||
$download_mode = intval($download_mode[$attachment['extension']]);
|
||||
}
|
||||
else
|
||||
{
|
||||
bb_die(sprintf($lang['EXTENSION_DISABLED_AFTER_POSTING'], $attachment['extension']) . "<br /><br />" . $lang['FILENAME'] . ": " . $attachment['physical_filename']);
|
||||
}
|
||||
|
||||
// Update download count
|
||||
|
Loading…
Reference in New Issue
Block a user