1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fixed problem with invoice design page

This commit is contained in:
Hillel Coren 2015-05-31 21:45:39 +03:00
parent ed189fcc23
commit eb572d9021

View File

@ -209,7 +209,7 @@ class AccountController extends BaseController
$data['invoice'] = $invoice;
$data['invoiceDesigns'] = InvoiceDesign::availableDesigns();
$data['invoiceLabels'] = json_decode($account->invoice_labels);
$data['invoiceLabels'] = json_decode($account->invoice_labels) ?: [];
} else if ($subSection == ACCOUNT_EMAIL_TEMPLATES) {
$data['invoiceEmail'] = $account->getEmailTemplate(ENTITY_INVOICE);
$data['quoteEmail'] = $account->getEmailTemplate(ENTITY_QUOTE);