summaryrefslogtreecommitdiff
path: root/LedgerSMB/OE.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/OE.pm')
-rwxr-xr-xLedgerSMB/OE.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/LedgerSMB/OE.pm b/LedgerSMB/OE.pm
index a9b624c0..1a51a6cf 100755
--- a/LedgerSMB/OE.pm
+++ b/LedgerSMB/OE.pm
@@ -667,7 +667,7 @@ sub save {
sub delete {
- my ($self, $myconfig, $form, ${LedgerSMB::Sysconfig::spool}) = @_;
+ my ($self, $myconfig, $form) = @_;
# connect to database
my $dbh = $form->{dbh};
@@ -680,11 +680,11 @@ sub delete {
$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;
@@ -753,7 +753,7 @@ sub delete {
$dbh->disconnect;
if ($rc) {
- foreach ${LedgerSMB::Sysconfig::spool}file (@spoolfiles) {
+ foreach $spoolfile (@spoolfiles) {
unlink "${LedgerSMB::Sysconfig::spool}/$spoolfile" if $spoolfile;
}
}