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