From 09dcf4583b974d7c587bbf762da77499c4972329 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 20 Nov 2023 15:56:44 +0700 Subject: [PATCH] Fixed announce-list indexes ordering (#339) * Fixed announce-list indexes ordering * Update CHANGELOG.md --- CHANGELOG.md | 1 + library/includes/functions_torrent.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 13379f8d..4ee86417 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ **Merged pull requests:** - Release v2.1.5-2024.05-beta1 🎉 +- Fixed announce-list indexes ordering [\#339](https://github.com/torrentpier/torrentpier-lts/pull/339) ([belomaxorka](https://github.com/belomaxorka)) - Fixed $bb_cfg['file_id_ext'] ordering [\#338](https://github.com/torrentpier/torrentpier-lts/pull/338) ([belomaxorka](https://github.com/belomaxorka)) - Normalizing announce-list [\#337](https://github.com/torrentpier/torrentpier-lts/pull/337) ([belomaxorka](https://github.com/belomaxorka)) - Fixed announcer-list issue [\#335](https://github.com/torrentpier/torrentpier-lts/pull/335), [\#336](https://github.com/torrentpier/torrentpier-lts/pull/336) ([belomaxorka](https://github.com/belomaxorka)) diff --git a/library/includes/functions_torrent.php b/library/includes/functions_torrent.php index 7becd26e..548f3eb2 100644 --- a/library/includes/functions_torrent.php +++ b/library/includes/functions_torrent.php @@ -554,7 +554,7 @@ function send_torrent_with_passkey ($filename) else { // Normalizing announce-list - $tor['announce-list'] = array_unique($tor['announce-list'], SORT_REGULAR); + $tor['announce-list'] = array_values(array_unique($tor['announce-list'], SORT_REGULAR)); } // Add publisher & topic url