diff --git a/library/includes/file_list_v2.php b/library/includes/file_list_v2.php index c50683eae..897cf8b28 100644 --- a/library/includes/file_list_v2.php +++ b/library/includes/file_list_v2.php @@ -156,7 +156,7 @@ sup {
Path | +Path ({$files['count']} files) | Size | BTMR hash diff --git a/src/Legacy/TorrentFileList.php b/src/Legacy/TorrentFileList.php index ed411df9d..fafb6b705 100644 --- a/src/Legacy/TorrentFileList.php +++ b/src/Legacy/TorrentFileList.php @@ -165,7 +165,7 @@ class TorrentFileList */ public function fileTreeTable(array $array, string $parent = ''): array { - static $filesList = ['list' => '', 'size' => 0]; + static $filesList = ['list' => '', 'size' => 0, 'count' => 0]; foreach ($array as $key => $value) { $key = htmlCHR($key); $current = "$parent/$key"; @@ -176,6 +176,7 @@ class TorrentFileList $root = bin2hex($value['']['pieces root'] ?? ''); $filesList['size'] += $length; $filesList['list'] .= ' |
---|---|---|---|
' . $current . ' | ' . humn_size($length, 2) . ' | ' . $root . ' | |