diff --git a/GeoIP/CRN.php b/GeoIP/CRN.php index d39057a..4458aaf 100644 --- a/GeoIP/CRN.php +++ b/GeoIP/CRN.php @@ -4513,7 +4513,7 @@ class GeoIP_CRN { * @return string Metro region name. */ public static function getRegionName($countryCode, $regionCode) { - if ($countryCode === null || $regionCode === null) { + if ($countryCode === null || $regionCode === null || !isset(self::$crnMap[$countryCode][$regionCode])) { return null; } return self::$crnMap[$countryCode][$regionCode];