diff --git a/src/Legacy/Torrent.php b/src/Legacy/Torrent.php index 97651148a..befffbd1b 100644 --- a/src/Legacy/Torrent.php +++ b/src/Legacy/Torrent.php @@ -390,7 +390,7 @@ class Torrent if (isset($info['length'])) { $totallen = (float)$info['length']; - } elseif (isset($bt_v1) && isset($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') {