From b19269df6131cd97909a2e6580aabc7db5f6645a Mon Sep 17 00:00:00 2001 From: mattab Date: Fri, 9 Dec 2016 10:26:26 +1300 Subject: Do not re-declare function refs https://github.com/piwik/piwik/issues/10880 --- libs/MaxMindGeoIP/geoip.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs') 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 -- cgit v1.2.3