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'],
|
||||||
|
Loading…
Reference in New Issue
Block a user