diff --git a/src/Legacy/Torrent.php b/src/Legacy/Torrent.php index 971b78406..f750727f6 100644 --- a/src/Legacy/Torrent.php +++ b/src/Legacy/Torrent.php @@ -389,8 +389,7 @@ class Torrent if (isset($info['length'])) { $totallen = (float)$info['length']; - } - elseif (isset($bt_v1, $info['files']) && \is_array($info['files'])) { + } elseif (isset($bt_v1, $info['files']) && \is_array($info['files'])) { foreach ($info['files'] as $fn => $f) { // Exclude padding files if (($f['attr'] ?? null) !== 'p') {