diff --git a/plugins/UserCountry/LocationProvider/GeoIp/Pecl.php b/plugins/UserCountry/LocationProvider/GeoIp/Pecl.php index f5f28c971944eefdb10322f0c2ff295857d1763d..b1d97f08fe7e6f98ad7b1bd52a0fffcd3577da41 100755 --- a/plugins/UserCountry/LocationProvider/GeoIp/Pecl.php +++ b/plugins/UserCountry/LocationProvider/GeoIp/Pecl.php @@ -90,7 +90,7 @@ class Pecl extends GeoIp // get isp data if the isp database is available if (self::isISPDatabaseAvailable()) { $isp = @geoip_isp_by_name($ip); - if ($ip !== false) { + if ($isp !== false) { $result[self::ISP_KEY] = utf8_encode($isp); } }