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