From: Janusz Dobrowolski Date: Sun, 21 Sep 2008 14:43:11 +0000 (+0000) Subject: Smaller bugfix in get_price() X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=83aa0d2a0df0a69319383266be6adf8c4b00ff92;p=textcart.git Smaller bugfix in get_price() --- diff --git a/sales/includes/sales_db.inc b/sales/includes/sales_db.inc index f1892e3..ffefcd2 100644 --- a/sales/includes/sales_db.inc +++ b/sales/includes/sales_db.inc @@ -54,7 +54,7 @@ function get_price ($stock_id, $currency, $sales_type_id, $factor=null, $date=nu if ($factor === null) { - $myrow = get_sales_type(get_post('sales_type_id')); + $myrow = get_sales_type($sales_type_id); $factor = $myrow['factor']; }