summaryrefslogtreecommitdiff
path: root/LedgerSMB/AA.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/AA.pm')
-rwxr-xr-xLedgerSMB/AA.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/LedgerSMB/AA.pm b/LedgerSMB/AA.pm
index 2ac0d1a8..3dfda666 100755
--- a/LedgerSMB/AA.pm
+++ b/LedgerSMB/AA.pm
@@ -595,11 +595,11 @@ sub delete_transaction {
my $sth = $dbh->prepare($query);
$sth->execute($form->{id}) || $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;
@@ -611,7 +611,7 @@ sub delete_transaction {
my $rc = $dbh->commit;
if ($rc) {
- foreach ${LedgerSMB::Sysconfig::spool}file (@spoolfiles) {
+ foreach $spoolfile (@spoolfiles) {
unlink "${LedgerSMB::Sysconfig::spool}/$spoolfile" if $spoolfile;
}
}