1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00

Skip rendering statements table if invoices is null

This commit is contained in:
Benjamin Beganović 2021-08-23 14:05:17 +02:00
parent 3912e8c4fe
commit 56b48ee3b7

View File

@ -328,6 +328,10 @@ class Design extends BaseDesign
{
$tbody = [];
if (is_null($this->invoices)) {
return [];
}
foreach ($this->invoices as $invoice) {
$element = ['element' => 'tr', 'elements' => []];