diff --git a/CHANGELOG.md b/CHANGELOG.md index c5ec2cb1b..876004a2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ **Merged pull requests:** +- Fixed announce-list indexes ordering [\#1135](https://github.com/torrentpier/torrentpier/pull/1135) ([belomaxorka](https://github.com/belomaxorka)) - Fixed $bb_cfg['file_id_ext'] ordering [\#1134](https://github.com/torrentpier/torrentpier/pull/1134) ([belomaxorka](https://github.com/belomaxorka)) - Normalizing announce-list [\#1133](https://github.com/torrentpier/torrentpier/pull/1133) ([belomaxorka](https://github.com/belomaxorka)) - Fixed announcer-list issue [\#1129](https://github.com/torrentpier/torrentpier/pull/1129), [\#1130](https://github.com/torrentpier/torrentpier/pull/1130), [\#1131](https://github.com/torrentpier/torrentpier/pull/1131), [\#1132](https://github.com/torrentpier/torrentpier/pull/1132) ([belomaxorka](https://github.com/belomaxorka)) diff --git a/src/Legacy/Torrent.php b/src/Legacy/Torrent.php index 7259e4443..08f82a34c 100644 --- a/src/Legacy/Torrent.php +++ b/src/Legacy/Torrent.php @@ -603,7 +603,7 @@ class Torrent unset($tor['announce-list']); } 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