summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-12-21 06:32:50 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-12-21 06:32:50 +0000
commit9dc846d3b4e92b62492e19a14db105b8575b6dbf (patch)
tree94f0fd8d569026c9467e55ba44073a32ce914bd1
parentd257ea9283277cfac10c93b247e252805119720f (diff)
Correcting header error when creating dataset
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1991 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--LedgerSMB/User.pm2
-rw-r--r--sql/modules/Payment.sql1
2 files changed, 1 insertions, 2 deletions
diff --git a/LedgerSMB/User.pm b/LedgerSMB/User.pm
index 0f2f0ec4..959e81df 100644
--- a/LedgerSMB/User.pm
+++ b/LedgerSMB/User.pm
@@ -428,7 +428,7 @@ sub process_query {
$ENV{PGHOST} = $form->{dbhost};
$ENV{PGPORT} = $form->{dbport};
- $results = system('psql -f $filename 2>&1');
+ $results = `psql -f $filename 2>&1`;
if ($?) {
$form->error($!);
}
diff --git a/sql/modules/Payment.sql b/sql/modules/Payment.sql
index f898528b..930e5ea7 100644
--- a/sql/modules/Payment.sql
+++ b/sql/modules/Payment.sql
@@ -315,7 +315,6 @@ CREATE OR REPLACE FUNCTION payment_bulk_post
RETURNS int AS
$$
DECLARE
- payment_trans numeric[];
out_count int;
t_voucher_id int;
t_trans_id int;