From 5e4455f042b8d82b89332bc0f2d345a3ff859a5a Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 16 Mar 2023 16:07:36 -0700 Subject: [PATCH] Deleted duplicate statement Signed-off-by: snipe --- app/Http/Controllers/Api/UsersController.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.php index 6bd6d1d090..1894bc0d5a 100644 --- a/app/Http/Controllers/Api/UsersController.php +++ b/app/Http/Controllers/Api/UsersController.php @@ -192,7 +192,6 @@ class UsersController extends Controller } $order = $request->input('order') === 'asc' ? 'asc' : 'desc'; - $offset = (($users) && (request('offset') > $users->count())) ? 0 : request('offset', 0); // Set the offset to the API call's offset, unless the offset is higher than the actual count of items in which // case we override with the actual count, so we should return 0 items.