summaryrefslogtreecommitdiff
path: root/app/Models
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-09-26 10:45:57 +0200
committerGravatar GitHub <noreply@github.com> 2016-09-26 10:45:57 +0200
commit273d28b763d4eaf32a250e8c002e3775eb2513e9 (patch)
tree20f45c15e387cd1e0d4f4aad3b50ed20035fd214 /app/Models
parent3870e430b1001b6a2adfa6dd228420392485488a (diff)
parent9291748c4745ff8f4be2beaa2998869fd26e907e (diff)
Merge pull request #1267 from Alkarex/api-userinfo
API implement user-info and fix edits
Diffstat (limited to 'app/Models')
-rw-r--r--app/Models/CategoryDAO.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Models/CategoryDAO.php b/app/Models/CategoryDAO.php
index fc431553e..c103163a1 100644
--- a/app/Models/CategoryDAO.php
+++ b/app/Models/CategoryDAO.php
@@ -50,6 +50,9 @@ class FreshRSS_CategoryDAO extends Minz_ModelPdo implements FreshRSS_Searchable
}
public function deleteCategory($id) {
+ if ($id <= 1) {
+ return false;
+ }
$sql = 'DELETE FROM `' . $this->prefix . 'category` WHERE id=?';
$stm = $this->bd->prepare($sql);