fix searching closet

This commit is contained in:
printempw 2017-01-14 20:39:13 +08:00
parent ad159c7f20
commit 10a9397fd0
2 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ class ClosetController extends Controller
->with('page', $page)
->with('q', $q)
->with('category', $category)
->with('total_pages', max($total_pages))
->with('total_pages', $total_pages ? max($total_pages) : 0)
->with('user', app('user.current'));
}

View File

@ -40,11 +40,11 @@
</ul>
<div class="tab-content no-padding">
<div class="tab-pane active box-body" id="skin-category">
@include('vendor.closet-items', ['items' => $items['skin']])
@include('vendor.closet-items', ['items' => (array)array_get($items, 'skin')])
</div>
<div class="tab-pane box-body" id="cape-category">
@include('vendor.closet-items', ['items' => $items['cape']])
@include('vendor.closet-items', ['items' => (array)array_get($items, 'cape')])
</div>
</div>
<div class="box-footer">