fix(TorrentFileList): Avoid array_merge reindexing for numeric folder names (#2014)
Some checks are pending
Continuous Integration / Nightly builds 📦 (push) Waiting to run
PHPMD / Run PHPMD scanning (push) Waiting to run

Co-authored-by: zxc <17812947+metalwarrior88@users.noreply.github.com>
This commit is contained in:
Roman Kelesidis 2025-06-29 15:01:20 +03:00 committed by GitHub
parent c2cbc77b14
commit a5fbc2ffc7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,7 @@ class TorrentFileList
if ($this->multiple) {
if (!empty($this->files_ary['/'])) {
$this->files_ary = array_merge($this->files_ary, $this->files_ary['/']);
$this->files_ary = $this->files_ary + $this->files_ary['/'];
unset($this->files_ary['/']);
}
$filelist = $html->array2html($this->files_ary);