Fixed variable name

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-04-15 17:37:25 -07:00
parent f6cfec1e49
commit fc7f1f907d

View file

@ -81,7 +81,7 @@ class AccessoriesController extends Controller
}
// Make sure the offset and limit are actually integers and do not exceed system limits
$offset = ($request->input('offset') > $locations->count()) ? $locations->count() : abs($request->input('offset'));
$offset = ($request->input('offset') > $accessories->count()) ? $accessories->count() : abs($request->input('offset'));
$limit = (abs($request->input('limit')) > config('app.max_results')) ? config('app.max_results') : abs($request->input('limit'));
$order = $request->input('order') === 'asc' ? 'asc' : 'desc';