if ($key && $ip==4) {
my $res=lc($gi->country_code_by_addr($param)) if $gi;
if ($Debug) { debug(" Plugin geoip: GetCountryByIp for $param: [$res]",5); }
- if ($res) { print $DomainsHashIDLib{$res}; }
+ if ($res) { print $DomainsHashIDLib{$res}?$DomainsHashIDLib{$res}:' '; }
else { print "<span style=\"color: #$color_other\">$Message[0]</span>"; }
}
if ($key && $ip==6) {
if (! $key) {
my $res=lc($gi->country_code_by_name($param)) if $gi;
if ($Debug) { debug(" Plugin geoip: GetCountryByHostname for $param: [$res]",5); }
- if ($res) { print $DomainsHashIDLib{$res}; }
+ if ($res) { print $DomainsHashIDLib{$res}?$DomainsHashIDLib{$res}:' '; }
else { print "<span style=\"color: #$color_other\">$Message[0]</span>"; }
}
print "</td>";