diff options
author | levinse <levinse> | 2011-04-11 07:19:30 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-04-11 07:19:30 +0000 |
commit | 9b6a55590ce6146a072d4d5c0b64b2ac7ccfe725 (patch) | |
tree | 490611c5fc5e6f7f3cb570203d18f5954716cd0e | |
parent | a2e21c767501d91e67d0b57c217fffa12d3a1ef8 (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.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 08a74bc1f..a2754fdc9 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -3344,7 +3344,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; } @@ -3373,7 +3373,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; } |