Update functions_torrent.php

This commit is contained in:
Roman Kelesidis 2023-11-26 14:21:28 +07:00
parent c08f18dc74
commit 6ffb9b66cd

View File

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