From c40e53c58ba46e69459a6bc9bbd93e6118258495 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 27 Mar 2014 11:27:39 +0900 Subject: [PATCH] =?UTF-8?q?get=5Fitem=5Fpoint=20=ED=95=A8=EC=88=98?= =?UTF-8?q?=EC=97=90=20it=5Fid=20=EC=A1=B0=EA=B1=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/shop.lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/shop.lib.php b/lib/shop.lib.php index 2a2451fe9..714e0ca80 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -1653,7 +1653,8 @@ function get_item_point($it, $io_id='', $trunc=10) if($it['it_point_type'] == 2 && $io_id) { $sql = " select io_id, io_price from {$g5['g5_shop_item_option_table']} - where io_id = '$io_id' + where it_id = '{$it['it_id']}' + and io_id = '$io_id' and io_type = '0' and io_use = '1' "; $opt = sql_fetch($sql);