Index: trunk/kernel/include/item.php =================================================================== diff -u -r1067 -r1099 --- trunk/kernel/include/item.php (.../item.php) (revision 1067) +++ trunk/kernel/include/item.php (.../item.php) (revision 1099) @@ -470,7 +470,7 @@ { $count = 0; $id = $this->Get("ResourceId"); - $sql = "SELECT count(*) as DupCount FROM ItemRating WHERE IPAddress='$ip' and ItemId=$id"; + $sql = "SELECT count(*) as DupCount FROM ".GetTablePrefix()."ItemRating WHERE IPAddress='$ip' and ItemId=$id"; $adodbConnection = &GetADODBConnection(); $rs = $adodbConnection->Execute($sql); if($rs) @@ -486,7 +486,7 @@ global $objConfig; $expired=time()-86400*$objConfig->Get("Timeout_Rating"); - $query="DELETE FROM ItemRating WHERE CreatedOn<$expired"; + $query="DELETE FROM ".GetTablePrefix()."ItemRating WHERE CreatedOn<$expired"; $this->adodbConnection->Execute($query); }