summaryrefslogtreecommitdiff
path: root/LedgerSMB/AM.pm
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-17 15:49:36 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-17 15:49:36 +0000
commit428586fcfca4becd89880e47efe292f31f58ce5a (patch)
tree0cd826577b64194952ac9778a8070e4d977a983b /LedgerSMB/AM.pm
parent0c7424b49f2857d9f615754bb6672bc312eb3ad1 (diff)
Fixed bugs regarding run_custom_queries and new logins.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@221 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/AM.pm')
-rwxr-xr-xLedgerSMB/AM.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/LedgerSMB/AM.pm b/LedgerSMB/AM.pm
index 82b58534..be9e47fe 100755
--- a/LedgerSMB/AM.pm
+++ b/LedgerSMB/AM.pm
@@ -77,7 +77,7 @@ sub get_account {
LIMIT 1|;
$sth = $dbh->prepare($query);
$sth->execute($form->{id});
- ($form->{orphaned}) = $dbh->fetchrow_array();
+ ($form->{orphaned}) = $sth->fetchrow_array();
$form->{orphaned} = !$form->{orphaned};
$dbh->commit;
@@ -140,7 +140,7 @@ sub save_account {
category = ?,
link = ?,
contra = ?
- WHERE id = $form->{id}|;
+ WHERE id = ?|;
push @queryargs, $form->{id};
} else {
$query = qq|
@@ -165,7 +165,7 @@ sub save_account {
$sth = $dbh->prepare($query);
$sth->execute($form->{accno});
- ($chart_id) = $sth->fetchrow_array($query);
+ ($chart_id) = $sth->fetchrow_array();
$sth->finish;
}