summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevinse <levinse>2011-04-11 07:19:32 +0000
committerlevinse <levinse>2011-04-11 07:19:32 +0000
commit037203eb43e0c58246188c5d0c15adf1a24e8e71 (patch)
tree3614908c8bd5ebd67ad9a97bb3433aad979cb23d
parent8ee4884ec6aaff194b7be247d6a6327ad5871f7f (diff)
possibly fix spurious error from cust_bill.pm related to barcode files when barcodes are turned off
-rw-r--r--FS/FS/cust_bill.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 3944404a8..1ffb94a6c 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -3306,7 +3306,7 @@ sub print_ps {
my ($file, $logofile, $barcodefile) = $self->print_latex(@_);
my $ps = generate_ps($file);
unlink($logofile);
- unlink($barcodefile);
+ unlink($barcodefile) if $barcodefile;
$ps;
}
@@ -3335,7 +3335,7 @@ sub print_pdf {
my ($file, $logofile, $barcodefile) = $self->print_latex(@_);
my $pdf = generate_pdf($file);
unlink($logofile);
- unlink($barcodefile);
+ unlink($barcodefile) if $barcodefile;
$pdf;
}