fix(TorrentFileList): Avoid array_merge reindexing for numeric folder names

Co-Authored-By: zxc <17812947+metalwarrior88@users.noreply.github.com>
This commit is contained in:
Roman Kelesidis 2025-06-29 14:53:21 +03:00
commit 0cacdebb6a
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 ($this->multiple) {
if (!empty($this->files_ary['/'])) { 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['/']); unset($this->files_ary['/']);
} }
$filelist = $html->array2html($this->files_ary); $filelist = $html->array2html($this->files_ary);