diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-10-24 03:45:40 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-10-24 03:45:40 +0000 |
commit | 04fce104fb69421a95b8166750f84c184ff9d932 (patch) | |
tree | 2b0a25966be483efc6dc435e0af08c083c9c800e /LedgerSMB/JC.pm | |
parent | 4e1902377b63a53dbd1df8d0f07c2537b77ec94d (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/JC.pm')
-rwxr-xr-x | LedgerSMB/JC.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/LedgerSMB/JC.pm b/LedgerSMB/JC.pm index fe6530db..c8974818 100755 --- a/LedgerSMB/JC.pm +++ b/LedgerSMB/JC.pm @@ -310,11 +310,11 @@ sub delete_timecard { 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; @@ -327,7 +327,7 @@ sub delete_timecard { my $rc = $dbh->commit; if ($rc) { - foreach ${LedgerSMB::Sysconfig::spool}file (@spoolfiles) { + foreach $spoolfile (@spoolfiles) { unlink "${LedgerSMB::Sysconfig::spool}/$spoolfile" if $spoolfile; } } |