diff --git a/app/Services/Pdf/PdfMock.php b/app/Services/Pdf/PdfMock.php index 510508b4bdb9..dd92e8a8a920 100644 --- a/app/Services/Pdf/PdfMock.php +++ b/app/Services/Pdf/PdfMock.php @@ -421,7 +421,7 @@ class PdfMock '$country_2' => 'AF', '$firstName' => 'Benedict', '$user.name' => 'Derrick Monahan DDS Erna Wunsch', - '$font_name' => $this->settings?->primary_font ?: 'Roboto', + '$font_name' => isset($this->settings?->primary_font) ? $this->settings?->primary_font : 'Roboto', '$auto_bill' => 'This invoice will automatically be billed to your credit card on file on the due date.', '$payments' => '', '$task.tax' => '', diff --git a/resources/views/portal/ninja2020/generic/error.blade.php b/resources/views/portal/ninja2020/generic/error.blade.php index 422bd36e682d..3eda46a72858 100644 --- a/resources/views/portal/ninja2020/generic/error.blade.php +++ b/resources/views/portal/ninja2020/generic/error.blade.php @@ -12,11 +12,16 @@ Invoice Ninja logo - @else + @elseif($company)
{{ $company->present()->name() }} logo
+ @else +
+ Invoice Ninja logo +
@endif

{{ $title }}