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);