fix(TorrentFileList): Avoid array_merge reindexing for numeric folder names (#2014)
Some checks are pending
Continuous Integration / Nightly builds 📦 (push) Waiting to run
Continuous Integration / 🎉 Deploy (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
parent 7ac335974b
commit 915e1d817c
No known key found for this signature in database
GPG key ID: D8157C4D4C4C6DB4

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