mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
misc: Minor improvements (#1892)
This commit is contained in:
parent
2555ebce47
commit
1e5b93d2c0
1 changed files with 3 additions and 5 deletions
|
@ -464,11 +464,9 @@ if ($tor_reged && $tor_info) {
|
||||||
|
|
||||||
$peerCountry = $lang['UNKNOWN'];
|
$peerCountry = $lang['UNKNOWN'];
|
||||||
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 ($infoByIP = infoByIP((!empty($peer['ipv6']) ? $peer['ipv6'] : $peer['ip']), $peer['port'])) {
|
||||||
if ($infoByIP = infoByIP($ip, $port)) {
|
if (isset($infoByIP['countryCode'])) {
|
||||||
if (isset($infoByIP['countryCode'])) {
|
$peerCountry = render_flag($infoByIP['countryCode']);
|
||||||
$peerCountry = render_flag($infoByIP['countryCode']);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue