diff options
Diffstat (limited to 'admin/user')
-rw-r--r-- | admin/user/delete.php | 5 | ||||
-rw-r--r-- | admin/user/insert.php | 5 |
2 files changed, 4 insertions, 6 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(); } 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(); } |