From fa23ace16816c74d3bbbe807c5e7ae08aa925824 Mon Sep 17 00:00:00 2001 From: tetragon Date: Thu, 30 Nov 2006 21:49:46 +0000 Subject: Fix posting query git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@711 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/GL.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'LedgerSMB') diff --git a/LedgerSMB/GL.pm b/LedgerSMB/GL.pm index f9f33493..c2781669 100755 --- a/LedgerSMB/GL.pm +++ b/LedgerSMB/GL.pm @@ -127,9 +127,9 @@ sub post_transaction { SET reference = |.$dbh->quote($form->{reference}).qq|, description = |.$dbh->quote($form->{description}).qq|, notes = |.$dbh->quote($form->{notes}).qq|, - transdate = '$form->{transdate}', - department_id = $department_id - WHERE id = $form->{id}|; + transdate = ?, + department_id = ? + WHERE id = ?|; $dbh->prepare($query); $sth->execute($form->{transdate}, $department_id, $form->{id}) -- cgit v1.2.3