mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:17:30 -04:00
Skip rendering statements table if invoices
is null
This commit is contained in:
parent
3912e8c4fe
commit
56b48ee3b7
@ -328,6 +328,10 @@ class Design extends BaseDesign
|
|||||||
{
|
{
|
||||||
$tbody = [];
|
$tbody = [];
|
||||||
|
|
||||||
|
if (is_null($this->invoices)) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($this->invoices as $invoice) {
|
foreach ($this->invoices as $invoice) {
|
||||||
$element = ['element' => 'tr', 'elements' => []];
|
$element = ['element' => 'tr', 'elements' => []];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user