diff options
-rwxr-xr-x | console | 2 | ||||
-rwxr-xr-x | plugins/UserCountry/LocationProvider/GeoIp/Php.php | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -27,4 +27,4 @@ if (!Piwik\Common::isPhpCliMode()) { $console = new Piwik\Console(); $console->init(); -$console->run();
\ No newline at end of file +$console->run(); diff --git a/plugins/UserCountry/LocationProvider/GeoIp/Php.php b/plugins/UserCountry/LocationProvider/GeoIp/Php.php index 271d2948a3..a946c7a9a4 100755 --- a/plugins/UserCountry/LocationProvider/GeoIp/Php.php +++ b/plugins/UserCountry/LocationProvider/GeoIp/Php.php @@ -158,9 +158,9 @@ class Php extends GeoIp $ispGeoIp = $this->getGeoIpInstance($key = 'isp'); if ($ispGeoIp) { if ($isIPv6) { - $isp = geoip_name_by_addr_v6($orgGeoIp, $ip); + $isp = geoip_name_by_addr_v6($ispGeoIp, $ip); } else { - $isp = geoip_org_by_addr($orgGeoIp, $ip); + $isp = geoip_org_by_addr($ispGeoIp, $ip); } if (!empty($isp)) { $result[self::ISP_KEY] = utf8_encode($isp); |