From cc5144fb3107a60b265f693b323c7b8f7c88a183 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 6 Jan 2025 18:53:29 +0700 Subject: [PATCH] Update Torrent.php --- src/Legacy/Torrent.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Legacy/Torrent.php b/src/Legacy/Torrent.php index 641e63132..00a37188e 100644 --- a/src/Legacy/Torrent.php +++ b/src/Legacy/Torrent.php @@ -397,7 +397,6 @@ class Torrent } // Getting external peers - $external_seeders = $external_leechers = 0; if ($bb_cfg['tracker']['multitracker']['enabled']) { $tor['announce-list'] = array_merge(array_column($tor['announce-list'], 0), [$tor['announce']]); $announcers = array_unique($tor['announce-list'], SORT_REGULAR); @@ -406,6 +405,8 @@ class Torrent ], $announcers); $external_seeders = $multiTracker->seeders; $external_leechers = $multiTracker->leechers; + } else { + $external_seeders = $external_leechers = 0; } if ($row = DB()->fetch_row("SELECT topic_id FROM " . BB_BT_TORRENTS . " $info_hash_where LIMIT 1")) {