diff --git a/library/attach_mod/displaying_torrent.php b/library/attach_mod/displaying_torrent.php index 4c546ec9b..550611ff9 100644 --- a/library/attach_mod/displaying_torrent.php +++ b/library/attach_mod/displaying_torrent.php @@ -464,7 +464,7 @@ if ($tor_reged && $tor_info) { $peerCountry = $lang['UNKNOWN']; if (IS_AM || $peer['user_id'] == $userdata['user_id'] || !bf($peer['user_opt'], 'user_opt', 'user_hide_peer_country')) { - if ($port !== false && ($ip !== false && $ip !== '')) { + if ($port !== false && $ip !== false) { if ($infoByIP = infoByIP($ip, $port)) { $peerCountry = render_flag($infoByIP['countryCode']); }