tor: fixed display of not founded country flags in tor.cgi
authorJan Paul Tuecking <earl@ipfire.org>
Fri, 6 Sep 2013 20:05:10 +0000 (22:05 +0200)
committerJan Paul Tuecking <earl@ipfire.org>
Fri, 6 Sep 2013 20:05:10 +0000 (22:05 +0200)
html/cgi-bin/tor.cgi

index 689a80aee1f449ec263166f70c13c9f4f05ead54..b6526b91cb1ec00d5a1a030cd30232ff710da63d 100755 (executable)
@@ -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>";