Update functions_torrent.php

This commit is contained in:
Roman Kelesidis 2023-11-26 14:11:00 +07:00
parent 383e73da8d
commit 606947274c

View File

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