summaryrefslogtreecommitdiff
path: root/LedgerSMB/IR.pm
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-24 03:45:40 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-24 03:45:40 +0000
commit04fce104fb69421a95b8166750f84c184ff9d932 (patch)
tree2b0a25966be483efc6dc435e0af08c083c9c800e /LedgerSMB/IR.pm
parent4e1902377b63a53dbd1df8d0f07c2537b77ec94d (diff)
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
Diffstat (limited to 'LedgerSMB/IR.pm')
-rwxr-xr-xLedgerSMB/IR.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/LedgerSMB/IR.pm b/LedgerSMB/IR.pm
index 165b4eb7..5ccb0b15 100755
--- a/LedgerSMB/IR.pm
+++ b/LedgerSMB/IR.pm
@@ -705,11 +705,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;
@@ -730,7 +730,7 @@ sub delete_invoice {
$dbh->commit;
}
- foreach ${LedgerSMB::Sysconfig::spool}file (@spoolfiles) {
+ foreach $spoolfile (@spoolfiles) {
unlink "${LedgerSMB::Sysconfig::spool}/$spoolfile" if $spoolfile;
}
}