Skip to content

Commit

Permalink
Fixed error when no category is given
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Nov 26, 2013
1 parent 1d50724 commit e13578d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/backend/models/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
@endif

</td>
<td>{{ $model->category->name }}</td>
<td>
@if ($model->category)
{{ $model->category->name }}
@endif</td>
<td>
<a href="{{ route('update/model', $model->id) }}" class="btn-flat white">@lang('button.edit')</a>
<a class="btn-flat danger delete-asset" data-toggle="modal" href="{{ route('delete/model', $model->id) }}" data-content="Are you sure you wish to delete the {{ $model->name }} model?" data-title="Delete {{ $model->name }}?" onClick="return false;">@lang('button.delete')</a>
Expand Down

0 comments on commit e13578d

Please sign in to comment.