summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-05 18:46:40 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-05 18:46:40 +0000
commit72438a0b8961434978cbcea2008c450a58eabf50 (patch)
tree15f49bc99240b8fcd627bd39324ec6a02863dc49 /bin
parentd30c84746a6d9dad428711cf3dcd3cc15dfb84c8 (diff)
Open the database connection before trying to use it
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1508 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin')
-rw-r--r--bin/am.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/am.pl b/bin/am.pl
index 4a8e297f..05b85080 100644
--- a/bin/am.pl
+++ b/bin/am.pl
@@ -3281,6 +3281,7 @@ sub process_transactions {
}
$form->{id} = $id;
$form->{header} = $header;
+ $form->db_init(\%myconfig);
# post, print, email
if ( $pt->{arid} || $pt->{apid} || $pt->{oeid} ) {