사용후기 관련된 코드 변경

This commit is contained in:
gnuboard
2013-06-14 16:56:34 +09:00
parent 8e05a87f05
commit 7dbff272b4
23 changed files with 700 additions and 82 deletions

View File

@ -448,7 +448,7 @@ function get_star_image($it_id)
{
global $g4;
$sql = "select (SUM(is_score) / COUNT(*)) as score from {$g4['shop_item_ps_table']} where it_id = '$it_id' ";
$sql = "select (SUM(is_score) / COUNT(*)) as score from {$g4['shop_item_use_table']} where it_id = '$it_id' ";
$row = sql_fetch($sql);
return (int)get_star($row['score']);