From 676d20920b4fc80d7253c1f667e2a216630e7e7e Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 27 May 2015 08:53:34 +0200 Subject: [PATCH] UserController: Remove redundant error handling refs #8826 --- application/controllers/UserController.php | 10 ++-------- application/views/scripts/user/list.phtml | 5 ----- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/application/controllers/UserController.php b/application/controllers/UserController.php index 90979a3a7..fc13c5455 100644 --- a/application/controllers/UserController.php +++ b/application/controllers/UserController.php @@ -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->users = $query; $this->view->backend = $backend; $this->createListTabs()->activate('user/list'); + $this->setupPaginationControl($query); $this->setupLimitControl(); $this->setupSortControl( array( diff --git a/application/views/scripts/user/list.phtml b/application/views/scripts/user/list.phtml index 093270d4b..a1e4a6994 100644 --- a/application/views/scripts/user/list.phtml +++ b/application/views/scripts/user/list.phtml @@ -26,11 +26,6 @@ if ($backend === null) { $reducible = $backend instanceof Reducible; } -if (! isset($users)) { - echo $this->translate('Failed to fetch any users') . ''; - return; -} - if (count($users) > 0): ?>