projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Items: fixed item tax type selector to exclude inactive item tax types.
[fa-stable.git]
/
admin
/
db
/
printers_db.inc
diff --git
a/admin/db/printers_db.inc
b/admin/db/printers_db.inc
index 43e13b4c9bbd1c016e241e35d9dc46f346538634..28c98a56b4b5d56c190d7634e76daca481fb2f64 100644
(file)
--- a/
admin/db/printers_db.inc
+++ b/
admin/db/printers_db.inc
@@
-57,7
+57,7
@@
function update_printer_profile($name, $dest)
."(profile, report, printer) VALUES ("
.db_escape($name).","
.db_escape($rep).","
."(profile, report, printer) VALUES ("
.db_escape($name).","
.db_escape($rep).","
- .db_escape($printer).")";
+ .db_escape($printer
? $printer: null, true
).")";
} else {
$sql = "DELETE FROM ".TB_PREF."print_profiles WHERE ("
."report=" . db_escape($rep)
} else {
$sql = "DELETE FROM ".TB_PREF."print_profiles WHERE ("
."report=" . db_escape($rep)
@@
-106,4
+106,3
@@
function get_print_profile($name)
return db_query($sql,"could not get printing profile");
}
return db_query($sql,"could not get printing profile");
}
-?>
\ No newline at end of file