Fixes #6341. Some style changes in this fix. (#6492)

This commit is contained in:
Ivan Nieto 2018-12-14 20:08:33 -06:00 committed by snipe
parent f5ba2106cd
commit 876ff2ef72

View file

@ -235,8 +235,12 @@ class LicensesController extends Controller
}
$order = $request->input('order') === 'asc' ? 'asc' : 'desc';
$total = $seats->count();
if($total < $offset){
$offset = 0;
}
$seats = $seats->skip($offset)->take($limit)->get();
if ($seats) {