aboutsummaryrefslogtreecommitdiffstats
path: root/admin/user/delete.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/user/delete.php')
-rw-r--r--admin/user/delete.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/admin/user/delete.php b/admin/user/delete.php
index 31389a2..1a7628c 100644
--- a/admin/user/delete.php
+++ b/admin/user/delete.php
@@ -28,9 +28,8 @@ if(!$User = $UserRepository->find(HTTP::GET('id'))) {
if(HTTP::issetPOST('delete')) {
if(HTTP::issetPOST(['token' => Application::getSecurityToken()])) {
try {
- if($UserRepository->delete($User)) {
- HTTP::redirect(Application::getAdminURL('user/'));
- }
+ $UserRepository->delete($User);
+ HTTP::redirect(Application::getAdminURL('user/'));
} catch(PDOException $Exception) {
$messages[] = $Exception->getMessage();
}