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