From b7921489a7354586fed28f9731bab2ccbc20b53b Mon Sep 17 00:00:00 2001 From: tetragon Date: Thu, 16 Nov 2006 01:22:55 +0000 Subject: Fix yearend post query git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@635 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/AM.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LedgerSMB/AM.pm b/LedgerSMB/AM.pm index df039e90..95b2a075 100755 --- a/LedgerSMB/AM.pm +++ b/LedgerSMB/AM.pm @@ -1763,7 +1763,9 @@ sub post_yearend { FROM gl WHERE reference = ?|; - ($form->{id}) = $dbh->prepare($query)->fetchrow_array($uid); + my $sth = $dbh->prepare($query); + $sth->execute($uid); + ($form->{id}) = $sth->fetchrow_array; $query = qq| UPDATE gl -- cgit v1.2.3