mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update functions_torrent.php
This commit is contained in:
parent
c08f18dc74
commit
6ffb9b66cd
@ -326,7 +326,14 @@ 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'];
|
||||
if (isset($f['length']) && is_numeric($f['length']))
|
||||
{
|
||||
$totallen += (float) $f['length'];
|
||||
}
|
||||
else
|
||||
{
|
||||
torrent_error_exit($lang['TORFILE_INVALID']);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user