X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fdb%2Fprinters_db.inc;h=28c98a56b4b5d56c190d7634e76daca481fb2f64;hb=a9f8bc40287ef12f16ad863d4acb1af3d18643b6;hp=43e13b4c9bbd1c016e241e35d9dc46f346538634;hpb=cc9972b02f2bf4ece12da3431266e85e96872fb1;p=fa-stable.git diff --git a/admin/db/printers_db.inc b/admin/db/printers_db.inc index 43e13b4c..28c98a56 100644 --- 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)."," - .db_escape($printer).")"; + .db_escape($printer ? $printer: null, true).")"; } 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"); } -?> \ No newline at end of file