Check for valid eula for license, consumable
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
166a700342
commit
d120585f94
1 changed files with 3 additions and 3 deletions
|
@ -236,7 +236,7 @@
|
|||
|
||||
@foreach ($show_user->licenses as $license)
|
||||
@php
|
||||
if ($license->category->getEula()) $eulas[] = $license->category->getEula()
|
||||
if (($license->category) && ($license->category->getEula())) $eulas[] = $license->category->getEula()
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ $lcounter }}</td>
|
||||
|
@ -294,7 +294,7 @@
|
|||
@foreach ($show_user->accessories as $accessory)
|
||||
@if ($accessory)
|
||||
@php
|
||||
if ($accessory->category->getEula()) $eulas[] = $accessory->category->getEula()
|
||||
if (($accessory->category) && ($accessory->category->getEula())) $eulas[] = $accessory->category->getEula()
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ $acounter }}</td>
|
||||
|
@ -357,7 +357,7 @@
|
|||
@foreach ($show_user->consumables as $consumable)
|
||||
@if ($consumable)
|
||||
@php
|
||||
if ($consumable->category->getEula()) $eulas[] = $consumable->category->getEula()
|
||||
if (($consumable->category) && ($consumable->category->getEula())) $eulas[] = $consumable->category->getEula()
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ $ccounter }}</td>
|
||||
|
|
Loading…
Add table
Reference in a new issue