Index: branches/5.2.x/core/units/helpers/rating_helper.php =================================================================== diff -u -N -r14968 -r15012 --- branches/5.2.x/core/units/helpers/rating_helper.php (.../rating_helper.php) (revision 14968) +++ branches/5.2.x/core/units/helpers/rating_helper.php (.../rating_helper.php) (revision 15012) @@ -1,6 +1,6 @@ $_SERVER['REMOTE_ADDR'], 'CreatedOn' => adodb_mktime(), ); - $this->Conn->doInsert($fields_hash, TABLE_PREFIX.'ItemRating'); + $this->Conn->doInsert($fields_hash, TABLE_PREFIX.'CatalogRatings'); // recalculate average rating $votes_count = $object->GetDBField('CachedVotesQty'); @@ -221,7 +221,7 @@ { $expired = adodb_mktime() - 86400 * $this->Application->ConfigValue('Timeout_Rating'); // 3600 - $sql = 'DELETE FROM ' . TABLE_PREFIX . 'ItemRating + $sql = 'DELETE FROM ' . TABLE_PREFIX . 'CatalogRatings WHERE CreatedOn < ' . $expired; $this->Conn->Query($sql); }*/