summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/IS.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/IS.pm b/LedgerSMB/IS.pm
index f67fc5e5..5ed3996d 100755
--- a/LedgerSMB/IS.pm
+++ b/LedgerSMB/IS.pm
@@ -1679,7 +1679,7 @@ sub delete_invoice {
# delete spool files
$query = qq|
SELECT spoolfile FROM status
- WHERE trans_id = $form->{id} AND spoolfile IS NOT NULL|;
+ WHERE trans_id = ? AND spoolfile IS NOT NULL|;
$sth = $dbh->prepare($query);
$sth->execute($form->{id}) || $form->dberror($query);