Fixed edition of purchase order (bug #0000001)
[fa-stable.git] / admin / db / voiding_db.inc
index f978ebfcd499e3d650b672918857534d5446b604..b90194ff04103e158c27b5a87a390ea61caeac14 100644 (file)
@@ -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_)
-               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");
 }