1
0
mirror of https://github.com/php/web-php.git synced 2026-04-25 16:08:12 +02:00

A country should only be valid, if we have a name

to display for it (we don't have a name for XEU for
example, which is not a country)
This commit is contained in:
Gabor Hojtsy
2003-05-17 12:54:36 +00:00
parent c184ef31f1
commit 0259bf27a9
+2 -2
View File
@@ -188,8 +188,8 @@ function i2c_search_in_db($ip, $idx = 0)
// Check if the current country is valid
function i2c_valid_country()
{
global $COUNTRY;
return (!empty($COUNTRY) && $COUNTRY != "NA");
global $COUNTRY, $COUNTRIES;
return (!empty($COUNTRY) && $COUNTRY != "NA" && isset($COUNTRIES[$COUNTRY]));
}
/* vim: set noet ts=4 sw=4 ft=php: : */