Skip to content

A free, self-hostable news aggregator…

Merge branch 'SqlOptimisation' of https://github.com/Alkarex/FreshRSS into Alkarex-SqlOptimisation

Marien Fressinaud008d6a704748
diff --cc app/controllers/feedController.php
index 8cb4c31c2,d685857bd..1131c3a7a
--- a/app/controllers/feedController.php
+++ b/app/controllers/feedController.php
@@@ -16,11 -16,8 +16,12 @@@ class feedController extends ActionCont
public function addAction () {
if (Request::isPost ()) {
$url = Request::param ('url_rss');
- $cat = Request::param ('category');
- if (empty($cat)) $cat = '000000';
+ $cat = Request::param ('category', false);
+ if ($cat === false) {
+ $def_cat = $this->catDAO->getDefault ();
+ $cat = $def_cat->id ();
+ }
++
$user = Request::param ('username');
$pass = Request::param ('password');
$params = array ();