From c69f491005aa3539ad09bc819bfa1df0508acbb0 Mon Sep 17 00:00:00 2001 From: DanielSeifert Date: Mon, 21 Nov 2016 15:34:05 +0000 Subject: [PATCH] #5772 - avoid strict standards message --- copy_this/modules/d3/d3geoip/models/d3geoip.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/copy_this/modules/d3/d3geoip/models/d3geoip.php b/copy_this/modules/d3/d3geoip/models/d3geoip.php index 2bd6a8b..1f78dc3 100644 --- a/copy_this/modules/d3/d3geoip/models/d3geoip.php +++ b/copy_this/modules/d3/d3geoip/models/d3geoip.php @@ -15,7 +15,7 @@ * @link http://www.oxidmodule.com */ -class d3GeoIP extends oxbase +class d3GeoIP extends oxBase { protected $_sClassName = 'd3geoip'; private $_sModId = 'd3_geoip'; @@ -47,9 +47,7 @@ class d3GeoIP extends oxbase } $iIPNum = $this->_getNumIp( - oxRegistry::getConfig()->checkParamSpecialChars( - str_replace(' ', '', $sIP) - ) + oxRegistry::getConfig()->checkParamSpecialChars($sIP) ); $sISOAlpha = $this->loadByIPNum($iIPNum); @@ -120,10 +118,11 @@ class d3GeoIP extends oxbase $sIP = 'UNKNOWN'; } } + $sIP = str_replace(' ', '', $sIP); stopProfile(__METHOD__); - return oxRegistry::getConfig()->checkParamSpecialChars(str_replace(' ', '', $sIP)); + return oxRegistry::getConfig()->checkParamSpecialChars($sIP); } /**