return null when pdf data is empty
This commit is contained in:
parent
3d75d77574
commit
5ff78abe2c
@ -124,8 +124,8 @@ class InvoicePdfService {
|
||||
$currentConfig = $configs[0];
|
||||
$logo = $this->getLogo();
|
||||
$invoiceData = $this->gestionBdd->getInvoicePdfDataByClientAndMonthYear($clientId,$month,$year,$currentConfig);
|
||||
if($invoiceData == null){
|
||||
return "";
|
||||
if(empty($invoiceData)){
|
||||
return null;
|
||||
}
|
||||
$pdf = new InvoicePdfHandler();
|
||||
$pdf->MutlipleInvoicePdfFactory($invoiceData,$logo);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user