aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/categoryController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controllers/categoryController.php')
-rw-r--r--app/Controllers/categoryController.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Controllers/categoryController.php b/app/Controllers/categoryController.php
index 2c99751a4..c79f37fa4 100644
--- a/app/Controllers/categoryController.php
+++ b/app/Controllers/categoryController.php
@@ -123,6 +123,10 @@ class FreshRSS_category_Controller extends Minz_ActionController {
Minz_Request::bad(_t('category_no_id'), $url_redirect);
}
+ if ($id === $default_category->id()) {
+ Minz_Request::bad(_t('category_not_delete_default'), $url_redirect);
+ }
+
if ($feedDAO->changeCategory($id, $default_category->id()) === false) {
Minz_Request::bad(_t('error_occurred'), $url_redirect);
}