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:
@@ -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: : */
|
||||
|
||||
Reference in New Issue
Block a user