X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=taxes%2Ftax_types.php;h=ca2f866f3ce06644fbda659225740dbbe8fe79e8;hb=510d6e1925c4d1621ae3efd85e117cc9bb4320f0;hp=5976f1a9eda6b005c9fd1860153047181cf3a157;hpb=902f1015d874c33bd7946b17de2ad80b4f2144b6;p=fa-stable.git diff --git a/taxes/tax_types.php b/taxes/tax_types.php index 5976f1a9..ca2f866f 100644 --- a/taxes/tax_types.php +++ b/taxes/tax_types.php @@ -72,7 +72,7 @@ if ($Mode=='UPDATE_ITEM' && can_process()) function can_delete($selected_id) { - $sql= "SELECT COUNT(*) FROM ".TB_PREF."tax_group_items WHERE tax_type_id=$selected_id"; + $sql= "SELECT COUNT(*) FROM ".TB_PREF."tax_group_items WHERE tax_type_id=".db_escape($selected_id); $result = db_query($sql, "could not query tax groups"); $myrow = db_fetch_row($result); if ($myrow[0] > 0)