From d406dc43c2b4e7cea56b0523647cc11c7b3f33f8 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 10 Feb 2022 20:13:02 -0800 Subject: [PATCH] Check for valid user before trying to present the auditor name Signed-off-by: snipe --- resources/views/hardware/view.blade.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php index b51fd72435..468b8eeeb1 100755 --- a/resources/views/hardware/view.blade.php +++ b/resources/views/hardware/view.blade.php @@ -281,7 +281,10 @@
{{ \App\Helpers\Helper::getFormattedDateObject($audit_log->created_at, 'date', false) }} - (by {{ link_to_route('users.show', $audit_log->user->present()->fullname(), [$audit_log->user->id]) }}) + @if ($audit_log->user) + (by {{ link_to_route('users.show', $audit_log->user->present()->fullname(), [$audit_log->user->id]) }}) + @endif +
@endif