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