Index: branches/5.2.x/core/units/helpers/rating_helper.php =================================================================== diff -u -N -r15137 -r15569 --- branches/5.2.x/core/units/helpers/rating_helper.php (.../rating_helper.php) (revision 15137) +++ branches/5.2.x/core/units/helpers/rating_helper.php (.../rating_helper.php) (revision 15569) @@ -1,6 +1,6 @@ $object->GetID(), 'RatingValue' => $rating, - 'IPAddress' => $_SERVER['REMOTE_ADDR'], + 'IPAddress' => $this->Application->getClientIp(), 'CreatedOn' => adodb_mktime(), ); $this->Conn->doInsert($fields_hash, TABLE_PREFIX.'CatalogRatings');