Fixed #4787 - don’t try to display category if it is invalid

This shouldn’t be needed, but in case data got weird (manual editing, etc)
This commit is contained in:
snipe 2018-01-10 06:33:59 -08:00
parent e6259eb6e1
commit 254234b0dc

View file

@ -39,7 +39,7 @@
</div>
@endif
@if ($accessory->category->name)
@if ($accessory->category)
<!-- accessory name -->
<div class="form-group">
<label class="col-sm-3 control-label">{{ trans('admin/accessories/general.accessory_category') }}</label>