projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed edition of purchase order (bug #0000001)
[fa-stable.git]
/
admin
/
db
/
voiding_db.inc
diff --git
a/admin/db/voiding_db.inc
b/admin/db/voiding_db.inc
index f978ebfcd499e3d650b672918857534d5446b604..b90194ff04103e158c27b5a87a390ea61caeac14 100644
(file)
--- a/
admin/db/voiding_db.inc
+++ b/
admin/db/voiding_db.inc
@@
-105,7
+105,7
@@
function add_voided_entry($type, $type_no, $date_, $memo_)
{
$date = date2sql($date_);
$sql = "INSERT INTO ".TB_PREF."voided (type, id, date_, memo_)
{
$date = date2sql($date_);
$sql = "INSERT INTO ".TB_PREF."voided (type, id, date_, memo_)
- VALUES ($type, $type_no,
'$date', '$memo_'
)";
+ VALUES ($type, $type_no,
".db_escape($date).", ".db_escape($memo_)."
)";
db_query($sql, "could not add voided transaction entry");
}
db_query($sql, "could not add voided transaction entry");
}