mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
Update displaying_torrent.php
This commit is contained in:
parent
45d1bbde92
commit
269ea826f7
1 changed files with 3 additions and 1 deletions
|
@ -466,7 +466,9 @@ 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)) {
|
||||||
$peerCountry = render_flag($infoByIP['countryCode']);
|
if (isset($infoByIP['countryCode'])) {
|
||||||
|
$peerCountry = render_flag($infoByIP['countryCode']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue