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