From d4a3345d1402f145eb43b3339293a0665846ad64 Mon Sep 17 00:00:00 2001 From: benakamoorthi Date: Tue, 23 Oct 2012 01:45:50 +0000 Subject: Refs #1823, do broken check w/ both GEOIP_ADDR & GEOIP_COUNTRY_CODE. git-svn-id: http://dev.piwik.org/svn/trunk@7281 59fd770c-687e-43c8-a1e3-f5a4ff64c105 --- plugins/UserCountry/LocationProvider/GeoIp/ServerBased.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/UserCountry') diff --git a/plugins/UserCountry/LocationProvider/GeoIp/ServerBased.php b/plugins/UserCountry/LocationProvider/GeoIp/ServerBased.php index 7b5b83537d..105d19e077 100755 --- a/plugins/UserCountry/LocationProvider/GeoIp/ServerBased.php +++ b/plugins/UserCountry/LocationProvider/GeoIp/ServerBased.php @@ -163,7 +163,8 @@ class Piwik_UserCountry_LocationProvider_GeoIp_ServerBased extends Piwik_UserCou */ public function isWorking() { - if (empty($_SERVER[self::TEST_SERVER_VAR])) + if (empty($_SERVER[self::TEST_SERVER_VAR]) + && empty($_SERVER[self::TEST_SERVER_VAR_ALT])) { return Piwik_Translate("UserCountry_CannotFindGeoIPServerVar", self::TEST_SERVER_VAR.' $_SERVER'); } -- cgit v1.2.3