mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 07:23:03 +02:00
tor: fixed display of not founded country flags in tor.cgi
This commit is contained in:
@@ -607,7 +607,7 @@ END
|
||||
END
|
||||
|
||||
if (exists($node->{'country_code'})) {
|
||||
if ($node->{'country_code'} eq '??') {
|
||||
if (!$node->{'country_code'} or $node->{'country_code'} eq '??') {
|
||||
print "<img src='/images/flags/blank.png' border='0' align='absmiddle'/>";
|
||||
} else {
|
||||
print "<a href='country.cgi#$node->{'country_code'}'><img src='/images/flags/$node->{'country_code'}.png' border='0' align='absmiddle' alt='$node->{'country_code'}'></a>";
|
||||
|
||||
Reference in New Issue
Block a user