Fixed announce-list indexes ordering (#1135)

* Fixed announce-list indexes ordering

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2023-11-20 15:43:40 +07:00 committed by GitHub
commit 02716090b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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))

View file

@ -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