Update view_torrent.php

This commit is contained in:
Roman Kelesidis 2023-10-18 19:05:17 +07:00
parent e40cf09b93
commit eb1294b810

View File

@ -17,7 +17,7 @@ $torrent = DB()->fetch_row("SELECT at.attach_id, at.physical_filename FROM ". BB
if (!$torrent) $this->ajax_die($lang['EMPTY_ATTACH_ID']);
$filename = get_attachments_dir() .'/'. $torrent['physical_filename'];
if ((($file_contents = @file_get_contents($filename)) === false) || !file_exists($filename))
if (($file_contents = @file_get_contents($filename)) === false)
{
if (IS_AM)
{