diff --git a/filelist.php b/filelist.php index 9ae8bff4c..c127cdd10 100644 --- a/filelist.php +++ b/filelist.php @@ -70,7 +70,7 @@ try { bb_simple_die(htmlCHR("{$lang['TORFILE_INVALID']}: {$e->getMessage()}"), 410); } -if ($torrent->isPrivate() && IS_GUEST) { +if (IS_GUEST && $torrent->isPrivate()) { bb_simple_die($lang['BT_PRIVATE_TORRENT'], 403); } @@ -78,7 +78,10 @@ $files = $torrent->$t_version_field()->$t_files_field(); $allFiles = ''; foreach ($files as $file) { - $allFiles .= '