projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security update merged from 2.1.
[fa-stable.git]
/
taxes
/
tax_types.php
diff --git
a/taxes/tax_types.php
b/taxes/tax_types.php
index 5976f1a9eda6b005c9fd1860153047181cf3a157..ca2f866f3ce06644fbda659225740dbbe8fe79e8 100644
(file)
--- 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)
{
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)
$result = db_query($sql, "could not query tax groups");
$myrow = db_fetch_row($result);
if ($myrow[0] > 0)