Update functions_torrent.php

This commit is contained in:
Roman Kelesidis 2023-11-26 14:10:43 +07:00
parent 93c16f32b3
commit 383e73da8d

View File

@ -326,9 +326,13 @@ 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 += (float) $f['length'];
$totallen += (isset($f['length']) && is_numeric($f['length'])) ? (float) $f['length'] : 'invalid_size';
}
}
if ($totallen === 'invalid_size')
{
torrent_error_exit($lang['TORFILE_INVALID']);
}
}
else
{