From 2af509058b48e49590b199d38eb21cf3437b60f6 Mon Sep 17 00:00:00 2001 From: Joshua Dwire Date: Sat, 30 Apr 2016 17:55:29 -0400 Subject: [PATCH] Fix errors --- resources/views/master.blade.php | 2 +- resources/views/public/header.blade.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/master.blade.php b/resources/views/master.blade.php index ea6ab96ef6d6..9587baeee422 100644 --- a/resources/views/master.blade.php +++ b/resources/views/master.blade.php @@ -1,7 +1,7 @@ - @if (isset($account) && $account->hasFeature(FEATURE_WHITE_LABEL)) + @if (isset($account) && $account instanceof \App\Models\Account && $account->hasFeature(FEATURE_WHITE_LABEL)) {{ trans('texts.client_portal') }} @else {{ isset($title) ? ($title . ' | Invoice Ninja') : ('Invoice Ninja | ' . trans('texts.app_title')) }} diff --git a/resources/views/public/header.blade.php b/resources/views/public/header.blade.php index d760747c33e8..dd2c5d6412d2 100644 --- a/resources/views/public/header.blade.php +++ b/resources/views/public/header.blade.php @@ -85,12 +85,12 @@
  • {!! link_to('/client/invoices', trans('texts.invoices') ) !!}
  • - @if ($account->hasFeature(FEATURE_DOCUMENTS)) + @if (isset($account) && $account->hasFeature(FEATURE_DOCUMENTS))
  • {!! link_to('/client/documents', trans('texts.documents') ) !!}
  • @endif - @if ($account->getTokenGatewayId()) + @if (isset($account) && $account->getTokenGatewayId())
  • {!! link_to('/client/paymentmethods', trans('texts.payment_methods') ) !!}