aboutsummaryrefslogtreecommitdiffstats
path: root/admin/page
diff options
context:
space:
mode:
Diffstat (limited to 'admin/page')
-rw-r--r--admin/page/delete.php5
-rw-r--r--admin/page/insert.php5
2 files changed, 4 insertions, 6 deletions
diff --git a/admin/page/delete.php b/admin/page/delete.php
index 035dbee..8542187 100644
--- a/admin/page/delete.php
+++ b/admin/page/delete.php
@@ -28,9 +28,8 @@ if(!$Page = $PageRepository->find(HTTP::GET('id'))) {
if(HTTP::issetPOST('delete')) {
if(HTTP::issetPOST(['token' => Application::getSecurityToken()])) {
try {
- if($PageRepository->delete($Page)) {
- HTTP::redirect(Application::getAdminURL('page/'));
- }
+ $PageRepository->delete($Page);
+ HTTP::redirect(Application::getAdminURL('page/'));
} catch(PDOException $Exception) {
$messages[] = $Exception->getMessage();
}
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();
}