Revert "Update functions_torrent.php"

This reverts commit 383e73da8d.
This commit is contained in:
Roman Kelesidis 2023-11-26 14:15:54 +07:00
parent ea09e7466e
commit c08f18dc74

View File

@ -326,13 +326,9 @@ function tracker_register ($attach_id, $mode = '', $tor_status = TOR_NOT_APPROVE
// Exclude padding files [Only for hybrid torrents]
if ((isset($f['attr']) ? $f['attr'] : null) !== 'p')
{
$totallen += (isset($f['length']) && is_numeric($f['length'])) ? (float) $f['length'] : 'invalid_size';
$totallen += (float) $f['length'];
}
}
if ($totallen === 'invalid_size')
{
torrent_error_exit($lang['TORFILE_INVALID']);
}
}
else
{