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
383e73da8d
commit
606947274c
@ -326,10 +326,10 @@ 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 += (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']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user