mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 11:18:56 +00:00
Update User model and Admin\UserController
This commit is contained in:
@@ -40,8 +40,14 @@ class UserController extends BasePageController
|
||||
];
|
||||
|
||||
$rslt = User::getRange(
|
||||
$offset, config('nntmux.items_per_page'), $orderBy, $variables['username'],
|
||||
$variables['email'], $variables['host'], $variables['role'], true
|
||||
$offset,
|
||||
config('nntmux.items_per_page'),
|
||||
$orderBy,
|
||||
$variables['username'],
|
||||
$variables['email'],
|
||||
$variables['host'],
|
||||
$variables['role'],
|
||||
true
|
||||
);
|
||||
|
||||
$results = $this->paginate($rslt ?? [], User::getCount($variables['role'], $variables['username'], $variables['host'], $variables['email']) ?? 0, config('nntmux.items_per_page'), $page, request()->url(), request()->query());
|
||||
|
||||
Reference in New Issue
Block a user