diff --git a/AvocadoEdition/extend/item.lib.php b/AvocadoEdition/extend/item.lib.php index 220a6a6..32cb95e 100644 --- a/AvocadoEdition/extend/item.lib.php +++ b/AvocadoEdition/extend/item.lib.php @@ -52,11 +52,11 @@ function insert_inventory($ch_id, $it_id, $item = null, $count = 1) { if($ch['ch_id']) { for($i=0; $i < $count; $i++) { - $inven_sql = " insert into {$g5[inventory_table]} - set ch_id = '{$ch[ch_id]}', - it_id = '{$item[it_id]}', - it_name = '{$item[it_name]}', - ch_name = '{$ch[ch_name]}'"; + $inven_sql = " insert into {$g5['inventory_table']} + set ch_id = '{$ch['ch_id']}', + it_id = '{$item['it_id']}', + it_name = '{$item['it_name']}', + ch_name = '{$ch['ch_name']}'"; sql_query($inven_sql); } }