Index: trunk/kernel/include/item.php =================================================================== diff -u -r2882 -r3122 --- trunk/kernel/include/item.php (.../item.php) (revision 2882) +++ trunk/kernel/include/item.php (.../item.php) (revision 3122) @@ -513,8 +513,8 @@ return false; } - $NumVotes = (int)$this->Get("CachedVotesQty"); - $CurrentRating = (int)$this->Get("CachedRating"); + $NumVotes = (int)$this->Get('CachedVotesQty'); + $CurrentRating = $this->Get('CachedRating'); $Rating = (($NumVotes * $CurrentRating) + $voteRating)/($NumVotes+1); $this->Set("CachedRating",$Rating); Index: trunk/kernel/include/itemrating.php =================================================================== diff -u -r1120 -r3122 --- trunk/kernel/include/itemrating.php (.../itemrating.php) (revision 1120) +++ trunk/kernel/include/itemrating.php (.../itemrating.php) (revision 3122) @@ -75,7 +75,7 @@ return false; } - $sql = sprintf("SELECT * FROM ItemRating WHERE RatingId = '%s'",$Id); + $sql = sprintf("SELECT * FROM ".GetTablePrefix()."ItemRating WHERE RatingId = '%s'",$Id); $result = $this->adodbConnection->Execute($sql); if ($result === false) {