Update functions_torrent.php

This commit is contained in:
Roman Kelesidis 2023-11-26 15:26:32 +07:00
parent 6ffb9b66cd
commit 5ee1dc6fe3

View File

@ -328,7 +328,7 @@ function tracker_register ($attach_id, $mode = '', $tor_status = TOR_NOT_APPROVE
{ {
if (isset($f['length']) && is_numeric($f['length'])) if (isset($f['length']) && is_numeric($f['length']))
{ {
$totallen += (float) $f['length']; $totallen += $f['length'];
} }
else else
{ {
@ -336,6 +336,7 @@ function tracker_register ($attach_id, $mode = '', $tor_status = TOR_NOT_APPROVE
} }
} }
} }
$totallen = (float) $totallen;
} }
else else
{ {