From 22996895d863e88942f2202152dc8509e8aa978a Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 31 Oct 2023 16:04:19 +0000 Subject: [PATCH] Check for valid model Signed-off-by: snipe --- resources/views/users/print.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/users/print.blade.php b/resources/views/users/print.blade.php index 3442285a9c..3be7923d88 100644 --- a/resources/views/users/print.blade.php +++ b/resources/views/users/print.blade.php @@ -81,7 +81,7 @@ {{ $asset->asset_tag }} {{ $asset->name }} {{ (($asset->model) && ($asset->model->category)) ? $asset->model->category->name : trans('general.invalid_category') }} - {{ $asset->model->name }} + {{ ($asset->model) ? $asset->model->name : trans('general.invalid_model') }} {{ $asset->serial }} {{ $asset->last_checkout }}