diff --git a/dl.php b/dl.php index 5b8852a96..6a03631b3 100644 --- a/dl.php +++ b/dl.php @@ -161,7 +161,7 @@ if (!$authorised) { $datastore->rm('cat_forums'); // Check tor status -if (!IS_AM && str_contains($attachment['mimetype'], 'bittorrent')) { +if (!IS_AM && ($attachment['mimetype'] === TORRENT_MIMETYPE)) { $sql = 'SELECT tor_status, poster_id FROM ' . BB_BT_TORRENTS . ' WHERE attach_id = ' . (int)$attachment['attach_id']; if (!($result = DB()->sql_query($sql))) {