mirror of
https://github.com/aknife2019/ip
synced 2024-11-21 07:34:32 +00:00
update
This commit is contained in:
parent
8aa004d3f8
commit
045551c4e2
@ -32,7 +32,7 @@ class IpInfo {
|
||||
$location = $reader->get($ip);
|
||||
$reader->close();
|
||||
|
||||
if( $language && $location['continent'][$language] ){
|
||||
if( $language && isset($location['continent'][$language]) ){
|
||||
$location = [
|
||||
'continent' => [
|
||||
'code' => $location['continent']['code'],
|
||||
@ -61,4 +61,4 @@ class IpInfo {
|
||||
private static function dataPath() {
|
||||
return self::$databasePath ?: IP_DATABASE_DIR . '/data.mmdb';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user