Update functions_torrent.php

This commit is contained in:
Roman Kelesidis 2023-10-15 01:51:44 +07:00
parent 3a2628821e
commit eee2cc837b

View File

@ -261,9 +261,9 @@ function tracker_register ($attach_id, $mode = '', $tor_status = TOR_NOT_APPROVE
$filename = get_attachments_dir() .'/'. $torrent['physical_filename'];
if (!is_file($filename)) return torrent_error_exit('File name error');
if (!file_exists($filename)) return torrent_error_exit('File not exists');
if (!$tor = bdecode_file($filename)) return torrent_error_exit('This is not a bencoded file');
if (!is_file($filename)) return torrent_error_exit($lang['ERROR_NO_ATTACHMENT']);
if (!file_exists($filename)) return torrent_error_exit($lang['ERROR_NO_ATTACHMENT']);
if (!$tor = bdecode_file($filename)) return torrent_error_exit($lang['TORFILE_INVALID']);
if ($bb_cfg['bt_disable_dht'])
{