X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=taxes%2Fdb%2Ftax_types_db.inc;h=a9325b60b10fd8b561beffc2ff19394e0e5da2d6;hb=cb27e249917456ac29e41f12a75d359c4fdad977;hp=f42470eff9b5b3134a02d70e9520ad44e211510f;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git diff --git a/taxes/db/tax_types_db.inc b/taxes/db/tax_types_db.inc index f42470ef..a9325b60 100644 --- a/taxes/db/tax_types_db.inc +++ b/taxes/db/tax_types_db.inc @@ -83,7 +83,7 @@ function delete_tax_type($type_id) db_query($sql, "could not delete tax type"); // also delete any item tax exemptions associated with this type - $sql = "DELETE FROM ".TB_PREF."item_tax_type_exemptions WHERE tax_type_id=$type_id"; + $sql = "DELETE FROM ".TB_PREF."item_tax_type_exemptions WHERE tax_type_id=".db_escape($type_id); db_query($sql, "could not delete item tax type exemptions"); @@ -127,4 +127,4 @@ function is_tax_account($account_code) } -?> \ No newline at end of file +?>