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
93c16f32b3
commit
383e73da8d
@ -326,9 +326,13 @@ 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 += (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
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user