parent
e0f0fbf1cc
commit
676d20920b
|
@ -64,17 +64,11 @@ class UserController extends AuthBackendController
|
|||
$query->applyFilter($filterEditor->getFilter());
|
||||
$this->setupFilterControl($filterEditor);
|
||||
|
||||
try {
|
||||
$this->setupPaginationControl($query);
|
||||
$this->view->users = $query;
|
||||
} catch (Exception $e) {
|
||||
Notification::error($e->getMessage());
|
||||
Logger::error($e);
|
||||
}
|
||||
|
||||
$this->view->backend = $backend;
|
||||
$this->createListTabs()->activate('user/list');
|
||||
|
||||
$this->setupPaginationControl($query);
|
||||
$this->setupLimitControl();
|
||||
$this->setupSortControl(
|
||||
array(
|
||||
|
|
|
@ -26,11 +26,6 @@ if ($backend === null) {
|
|||
$reducible = $backend instanceof Reducible;
|
||||
}
|
||||
|
||||
if (! isset($users)) {
|
||||
echo $this->translate('Failed to fetch any users') . '</div>';
|
||||
return;
|
||||
}
|
||||
|
||||
if (count($users) > 0): ?>
|
||||
<table data-base-target="_next" class="action user-list">
|
||||
<thead>
|
||||
|
|
Loading…
Reference in New Issue