diff --git a/upload/ajax/view_torrent.php b/upload/ajax/view_torrent.php index 7df15cf13..af2327b8e 100644 --- a/upload/ajax/view_torrent.php +++ b/upload/ajax/view_torrent.php @@ -156,10 +156,15 @@ class torrent function build_file_item ($name, $length) { - global $images, $lang; + global $bb_cfg, $images, $lang; - $magnet_name = ''; - $magnet_ext = ''; + $magnet_name = $magnet_ext = ''; + + if ($bb_cfg['magnet_links_enabled']) + { + $magnet_name = ''; + $magnet_ext = ''; + } return "$name $length $magnet_name $magnet_ext"; }