Update displaying_torrent.php

This commit is contained in:
Roman Kelesidis 2025-05-04 11:12:56 +03:00
commit 269ea826f7

View file

@ -466,10 +466,12 @@ if ($tor_reged && $tor_info) {
if (IS_AM || $peer['user_id'] == $userdata['user_id'] || !bf($peer['user_opt'], 'user_opt', 'user_hide_peer_country')) { if (IS_AM || $peer['user_id'] == $userdata['user_id'] || !bf($peer['user_opt'], 'user_opt', 'user_hide_peer_country')) {
if ($port !== false && $ip !== false) { if ($port !== false && $ip !== false) {
if ($infoByIP = infoByIP($ip, $port)) { if ($infoByIP = infoByIP($ip, $port)) {
if (isset($infoByIP['countryCode'])) {
$peerCountry = render_flag($infoByIP['countryCode']); $peerCountry = render_flag($infoByIP['countryCode']);
} }
} }
} }
}
$template->assign_block_vars("$x_full.$x_row", [ $template->assign_block_vars("$x_full.$x_row", [
'ROW_BGR' => $row_bgr, 'ROW_BGR' => $row_bgr,