#5772 - avoid strict standards message

Cette révision appartient à :
Daniel Seifert 2016-11-21 15:34:05 +00:00
Parent 2e0b363941
révision c69f491005
1 fichiers modifiés avec 4 ajouts et 5 suppressions

Voir le fichier

@ -15,7 +15,7 @@
* @link http://www.oxidmodule.com * @link http://www.oxidmodule.com
*/ */
class d3GeoIP extends oxbase class d3GeoIP extends oxBase
{ {
protected $_sClassName = 'd3geoip'; protected $_sClassName = 'd3geoip';
private $_sModId = 'd3_geoip'; private $_sModId = 'd3_geoip';
@ -47,9 +47,7 @@ class d3GeoIP extends oxbase
} }
$iIPNum = $this->_getNumIp( $iIPNum = $this->_getNumIp(
oxRegistry::getConfig()->checkParamSpecialChars( oxRegistry::getConfig()->checkParamSpecialChars($sIP)
str_replace(' ', '', $sIP)
)
); );
$sISOAlpha = $this->loadByIPNum($iIPNum); $sISOAlpha = $this->loadByIPNum($iIPNum);
@ -120,10 +118,11 @@ class d3GeoIP extends oxbase
$sIP = 'UNKNOWN'; $sIP = 'UNKNOWN';
} }
} }
$sIP = str_replace(' ', '', $sIP);
stopProfile(__METHOD__); stopProfile(__METHOD__);
return oxRegistry::getConfig()->checkParamSpecialChars(str_replace(' ', '', $sIP)); return oxRegistry::getConfig()->checkParamSpecialChars($sIP);
} }
/** /**