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