aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-11-06 19:49:51 +0100
committerGravatar GitHub <noreply@github.com> 2019-11-06 19:49:51 +0100
commit61878794a944d47bd3098ce0f18eaa303174fc67 (patch)
treeebe6df267740fbac67ed69856b45006066da51b1
parent22030155f8fd5cab102ddd897a914cf1a0ffd183 (diff)
Fix name of default category (#2638)
Fix https://github.com/FreshRSS/FreshRSS/issues/2637
-rw-r--r--app/Models/CategoryDAO.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Models/CategoryDAO.php b/app/Models/CategoryDAO.php
index c1277751c..f4cef9726 100644
--- a/app/Models/CategoryDAO.php
+++ b/app/Models/CategoryDAO.php
@@ -45,6 +45,12 @@ class FreshRSS_CategoryDAO extends Minz_ModelPdo implements FreshRSS_Searchable
} else {
$this->pdo->exec('DROP INDEX IF EXISTS feed_keep_history_index'); //SQLite at least drop index
}
+
+ $stm = $this->pdo->prepare('UPDATE `_category` SET name = :name WHERE id = :id');
+ $stm->bindValue(':id', self::DEFAULTCATEGORYID, PDO::PARAM_INT);
+ $stm->bindValue(':name', 'Uncategorized');
+ $stm->execute();
+
return $ok;
}
} catch (Exception $e) {