From 90ece5c7621789f170246b2898841b347e264674 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 4 May 2025 12:33:08 +0300 Subject: [PATCH] misc: Minor improvements (#1893) --- library/attach_mod/displaying_torrent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/attach_mod/displaying_torrent.php b/library/attach_mod/displaying_torrent.php index 4d698ee09..a621cb113 100644 --- a/library/attach_mod/displaying_torrent.php +++ b/library/attach_mod/displaying_torrent.php @@ -465,7 +465,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 ($infoByIP = infoByIP((!empty($peer['ipv6']) ? $peer['ipv6'] : $peer['ip']), $peer['port'])) { - if (isset($infoByIP['countryCode'])) { + if (!empty($infoByIP['countryCode'])) { $peerCountry = render_flag($infoByIP['countryCode']); } }