X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_bill.pm;h=a2754fdc9bf872534a70c7fc94c4796cbc0a4bbf;hp=08a74bc1f4bb8d11816c3a69d05f57eb2a4e6902;hb=9b6a55590ce6146a072d4d5c0b64b2ac7ccfe725;hpb=a2e21c767501d91e67d0b57c217fffa12d3a1ef8 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; }