Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2016-12-09 00:26:26 +0300
committermattab <matthieu.aubry@gmail.com>2016-12-12 12:59:17 +0300
commitb19269df6131cd97909a2e6580aabc7db5f6645a (patch)
tree630dba65bf2b1591bed24515e65419c26b62ab13 /libs
parentf87d6788cf8fbc971ff17d90b17e5804d08df1f3 (diff)
Do not re-declare function refs https://github.com/piwik/piwik/issues/10880
Diffstat (limited to 'libs')
-rwxr-xr-xlibs/MaxMindGeoIP/geoip.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/MaxMindGeoIP/geoip.inc b/libs/MaxMindGeoIP/geoip.inc
index 739a4ef987..519e48d373 100755
--- a/libs/MaxMindGeoIP/geoip.inc
+++ b/libs/MaxMindGeoIP/geoip.inc
@@ -1921,6 +1921,7 @@ function geoip_region_by_addr($gi, $addr)
return _get_region($gi, $ipnum);
}
+if(!function_exists('getdnsattributes')) {
function getdnsattributes($l, $ip)
{
$r = new Net_DNS_Resolver();
@@ -1930,7 +1931,7 @@ function getdnsattributes($l, $ip)
$str = substr($str, 1, -1);
return $str;
}
-
+}
function _safe_substr($string, $start, $length)
{
// workaround php's broken substr, strpos, etc handling with