From 04fce104fb69421a95b8166750f84c184ff9d932 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Tue, 24 Oct 2006 03:45:40 +0000 Subject: Fixing breadead mistakes when moving variables to new namespace git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@284 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/IS.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'LedgerSMB/IS.pm') diff --git a/LedgerSMB/IS.pm b/LedgerSMB/IS.pm index 090ee10d..ff4b7855 100755 --- a/LedgerSMB/IS.pm +++ b/LedgerSMB/IS.pm @@ -1226,7 +1226,7 @@ sub reverse_invoice { sub delete_invoice { - my ($self, $myconfig, $form, ${LedgerSMB::Sysconfig::spool}) = @_; + my ($self, $myconfig, $form) = @_; # connect to database my $dbh = $form->dbconnect_noauto($myconfig); @@ -1253,11 +1253,11 @@ sub delete_invoice { my $sth = $dbh->prepare($query); $sth->execute || $form->dberror($query); - my ${LedgerSMB::Sysconfig::spool}file; + my $spoolfile; my @spoolfiles = (); - while ((${LedgerSMB::Sysconfig::spool}file) = $sth->fetchrow_array) { - push @spoolfiles, ${LedgerSMB::Sysconfig::spool}file; + while (($spoolfile) = $sth->fetchrow_array) { + push @spoolfiles, $spoolfile; } $sth->finish; @@ -1269,7 +1269,7 @@ sub delete_invoice { my $rc = $dbh->commit; if ($rc) { - foreach ${LedgerSMB::Sysconfig::spool}file (@spoolfiles) { + foreach $spoolfile (@spoolfiles) { unlink "${LedgerSMB::Sysconfig::spool}/$spoolfile" if $spoolfile; } } -- cgit v1.2.3