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