@@ -21,6 +21,8 @@ class Price
function create($priceset_id, $product_id, $price)
{
+ if (!$price) $price = 0;
+
$query = "INSERT INTO ".$this->db->price_table." VALUES(0, ".$priceset_id.", '".$product_id."', ".$price.")";
$this->db->query($query);