[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [636] trunk/LedgerSMB/AM.pm



Revision: 636
          http://svn.sourceforge.net/ledger-smb/?rev=636&view=rev
Author:   tetragon
Date:     2006-11-15 17:24:06 -0800 (Wed, 15 Nov 2006)

Log Message:
-----------
Fix DBI syntax in yearend posting

Modified Paths:
--------------
    trunk/LedgerSMB/AM.pm

Modified: trunk/LedgerSMB/AM.pm
===================================================================
--- trunk/LedgerSMB/AM.pm	2006-11-16 01:22:55 UTC (rev 635)
+++ trunk/LedgerSMB/AM.pm	2006-11-16 01:24:06 UTC (rev 636)
@@ -1763,7 +1763,9 @@
 		  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 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.