Check for valid category before getting the eula
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
a44490e448
commit
36b27fcda3
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@
|
|||
<tbody>
|
||||
@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
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
|
|
Loading…
Add table
Reference in a new issue