From b8fb0d8b5a54bfa3629e81c6cfc153b0f9d4a885 Mon Sep 17 00:00:00 2001
From: Anton Chernyavski <i.splinter@i.ua>
Date: Mon, 22 Jun 2015 17:52:27 +0300
Subject: [PATCH] fix typo

---
 plugins/UserCountry/LocationProvider/GeoIp/Pecl.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/UserCountry/LocationProvider/GeoIp/Pecl.php b/plugins/UserCountry/LocationProvider/GeoIp/Pecl.php
index f5f28c9719..b1d97f08fe 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);
             }
         }
-- 
GitLab