Update from usntable branch.
[fa-stable.git] / admin / db / printers_db.inc
index 572dca5e2b28eba5b8fc0ddc61911777cded1cda..c1d80368b1d156acb76922d5a9a5a4d24c7eb33d 100644 (file)
@@ -71,7 +71,7 @@ function update_printer_profile($name, $dest)
 function get_report_printer($profile, $report)
 {
        $sql = "SELECT printer FROM ".TB_PREF."print_profiles WHERE "
-               ."profile=".db_escape($profile)." AND report=".db_escape($report);
+               ."profile=".db_escape($profile)." AND report=";
 
        $result = db_query($sql.db_escape($report), 'report printer lookup failed');