[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [633] trunk/LedgerSMB
- Subject: SF.net SVN: ledger-smb: [633] trunk/LedgerSMB
- From: ..hidden..
- Date: Wed, 15 Nov 2006 17:14:50 -0800
Revision: 633
http://svn.sourceforge.net/ledger-smb/?rev=633&view=rev
Author: tetragon
Date: 2006-11-15 17:14:50 -0800 (Wed, 15 Nov 2006)
Log Message:
-----------
Removing $query arguments from $sth->fetchrow_array calls
Modified Paths:
--------------
trunk/LedgerSMB/AM.pm
trunk/LedgerSMB/CA.pm
trunk/LedgerSMB/CP.pm
trunk/LedgerSMB/IR.pm
trunk/LedgerSMB/IS.pm
Modified: trunk/LedgerSMB/AM.pm
===================================================================
--- trunk/LedgerSMB/AM.pm 2006-11-16 00:53:12 UTC (rev 632)
+++ trunk/LedgerSMB/AM.pm 2006-11-16 01:14:50 UTC (rev 633)
@@ -455,7 +455,7 @@
$sth = $dbh->prepare($query);
$sth->execute($form->{id}) || $form->dberror($query);
- ($form->{description}) = $sth->fetchrow_array($query);
+ ($form->{description}) = $sth->fetchrow_array;
$sth->finish;
# see if it is in use
@@ -467,7 +467,7 @@
$sth = $dbh->prepare($query);
$sth->execute($form->{id});
- ($form->{orphaned}) = $sth->fetchrow_array($query);
+ ($form->{orphaned}) = $sth->fetchrow_array;
if (($form->{orphaned} * 1) == 0){
$form->{orphaned} = 1;
} else {
@@ -571,7 +571,7 @@
$sth = $dbh->prepare($query);
$sth->execute($form->{id});
- ($form->{description}, $form->{role}) = $sth->fetchrow_array($query);
+ ($form->{description}, $form->{role}) = $sth->fetchrow_array;
$sth->finish;
for (keys %$ref) { $form->{$_} = $ref->{$_} }
@@ -584,7 +584,7 @@
$sth = $dbh->prepare($query);
$sth->execute($form->{id});
- ($form->{orphaned}) = $sth->fetchrow_array($query);
+ ($form->{orphaned}) = $sth->fetchrow_array;
if (($form->{orphaned} * 1) == 0){
$form->{orphaned} = 1;
} else {
Modified: trunk/LedgerSMB/CA.pm
===================================================================
--- trunk/LedgerSMB/CA.pm 2006-11-16 00:53:12 UTC (rev 632)
+++ trunk/LedgerSMB/CA.pm 2006-11-16 01:14:50 UTC (rev 633)
@@ -316,7 +316,7 @@
$sth = $dbh->prepare($query);
$sth->execute(@queryargs);
- ($form->{balance}) = $sth->fetchrow_array($query);
+ ($form->{balance}) = $sth->fetchrow_array;
$sth->finish;
@queryargs = ();
}
Modified: trunk/LedgerSMB/CP.pm
===================================================================
--- trunk/LedgerSMB/CP.pm 2006-11-16 00:53:12 UTC (rev 632)
+++ trunk/LedgerSMB/CP.pm 2006-11-16 01:14:50 UTC (rev 633)
@@ -708,7 +708,7 @@
$sth = $dbh->prepare($query);
$sth->execute($paymentaccno);
- ($accno_id) = $sth->fetchrow_array($query);
+ ($accno_id) = $sth->fetchrow_array;
# add payment
$query = qq|
Modified: trunk/LedgerSMB/IR.pm
===================================================================
--- trunk/LedgerSMB/IR.pm 2006-11-16 00:53:12 UTC (rev 632)
+++ trunk/LedgerSMB/IR.pm 2006-11-16 01:14:50 UTC (rev 633)
@@ -101,7 +101,7 @@
$sth = $dbh->prepare($query);
$sth->execute($form->{id});
- if ($sth->fetchrow_array($query)) {
+ if ($sth->fetchrow_array) {
$query = qq|
SELECT p.id, p.inventory_accno_id,
p.income_accno_id
Modified: trunk/LedgerSMB/IS.pm
===================================================================
--- trunk/LedgerSMB/IS.pm 2006-11-16 00:53:12 UTC (rev 632)
+++ trunk/LedgerSMB/IS.pm 2006-11-16 01:14:50 UTC (rev 633)
@@ -762,7 +762,7 @@
$sth = $dbh->prepare($query);
$sth->execute($id);
- ($_) = $sth->fetchrow_array($query);
+ ($_) = $sth->fetchrow_array;
$_;
@@ -1573,7 +1573,7 @@
my $sth;
$sth = $dbh->prepare($query);
$sth->execute($form->{id});
- my ($id) = $sth->fetchrow_array($query);
+ my ($id) = $sth->fetchrow_array;
return unless $id;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.