From 36b27fcda3b3fc0978a951a78f88f6e62796fb87 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 27 Sep 2024 13:37:14 +0100 Subject: [PATCH] Check for valid category before getting the eula 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 a1fa3373ff..baba88b5fb 100644 --- a/resources/views/users/print.blade.php +++ b/resources/views/users/print.blade.php @@ -139,7 +139,7 @@ @foreach ($show_user->assets as $asset) @php - if ($asset->model->category->getEula()) $eulas[] = $asset->model->category->getEula() + if (($asset->model->category) && ($asset->model->category->getEula())) $eulas[] = $asset->model->category->getEula() @endphp {{ $counter }}