A free, self-hostable news aggregator…
Bug static
Alexandre Alapetitee315192c4b3d
diff --git a/app/Models/CategoryDAO.php b/app/Models/CategoryDAO.phpindex a44edb0f6..3b1519c20 100644--- a/app/Models/CategoryDAO.php+++ b/app/Models/CategoryDAO.php@@ -10,7 +10,7 @@ class FreshRSS_CategoryDAO extends Minz_ModelPdo implements FreshRSS_Searchable);if ($stm && $stm->execute($values)) {- return $this->bd->lastInsertId('"' . parent::prefix . 'category_id_seq"');+ return $this->bd->lastInsertId('"' . $this->prefix . 'category_id_seq"');} else {$info = $stm == null ? array(2 => 'syntax error') : $stm->errorInfo();Minz_Log::error('SQL error addCategory: ' . $info[2]);diff --git a/app/Models/FeedDAO.php b/app/Models/FeedDAO.phpindex f29dac9c0..ce65ed8b1 100644--- a/app/Models/FeedDAO.php+++ b/app/Models/FeedDAO.php@@ -16,7 +16,7 @@ class FreshRSS_FeedDAO extends Minz_ModelPdo implements FreshRSS_Searchable {);if ($stm && $stm->execute($values)) {- return $this->bd->lastInsertId('"' . parent::prefix . 'feed_id_seq"');+ return $this->bd->lastInsertId('"' . $this->prefix . 'feed_id_seq"');} else {$info = $stm == null ? array(2 => 'syntax error') : $stm->errorInfo();Minz_Log::error('SQL error addFeed: ' . $info[2]);