From 5ee1dc6fe350e12ed02c5f7a019f89ad3df84082 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 26 Nov 2023 15:26:32 +0700 Subject: [PATCH] Update functions_torrent.php --- library/includes/functions_torrent.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/includes/functions_torrent.php b/library/includes/functions_torrent.php index de4775c6..181dab1c 100644 --- a/library/includes/functions_torrent.php +++ b/library/includes/functions_torrent.php @@ -328,7 +328,7 @@ function tracker_register ($attach_id, $mode = '', $tor_status = TOR_NOT_APPROVE { if (isset($f['length']) && is_numeric($f['length'])) { - $totallen += (float) $f['length']; + $totallen += $f['length']; } else { @@ -336,6 +336,7 @@ function tracker_register ($attach_id, $mode = '', $tor_status = TOR_NOT_APPROVE } } } + $totallen = (float) $totallen; } else {