From 92ff64bbb9ec1f0826656c8219def40b0a434a94 Mon Sep 17 00:00:00 2001 From: tetragon Date: Thu, 16 Nov 2006 01:24:06 +0000 Subject: Fix DBI syntax in yearend posting git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@636 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