From ade44d6254848ccae77d2de6e75af7156c6e0f9c Mon Sep 17 00:00:00 2001 From: tetragon Date: Wed, 29 Nov 2006 20:28:21 +0000 Subject: Converting some selectrow_array calls to fetchrow_array git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@705 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/AM.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LedgerSMB/AM.pm') diff --git a/LedgerSMB/AM.pm b/LedgerSMB/AM.pm index 4ca04ac5..15ea3e33 100755 --- a/LedgerSMB/AM.pm +++ b/LedgerSMB/AM.pm @@ -233,7 +233,7 @@ sub delete_account { $sth->execute($form->{id}); my ($rowcount) = $sth->fetchrow_array(); - if ($dbh->selectrow_array($query)) { + if ($rowcount) { $form->error( "Cannot delete accounts with associated transactions!" ); @@ -345,7 +345,7 @@ sub get_gifi { $sth = $dbh->prepare($query); $sth->execute($form->{accno}) || $form->dberror($query); - ($numrows) = $dbh->selectrow_array($query); + ($numrows) = $sth->fetchrow_array; if (($numrows * 1) == 0){ $form->{orphaned} = 1; } else { -- cgit v1.2.3