The SQL optimisation patch had introduced a bug with "No Category", now solved
@@ -17,6 +17,7 @@ class feedController extends ActionController {
if (Request::isPost ()) {
$url = Request::param ('url_rss');
$cat = Request::param ('category');
+ if (empty($cat)) $cat = '000000';
$user = Request::param ('username');
$pass = Request::param ('password');
$params = array ();
@@ -179,7 +179,7 @@ class CategoryDAO extends Model_pdo {
if ($prePopulateFeeds) {
$sql = 'SELECT c.id as c_id, c.name as c_name, c.color as c_color, count(e.id) as nbNotRead, f.* '
. 'FROM ' . $this->prefix . 'category c '
- . 'INNER JOIN ' . $this->prefix . 'feed f ON f.category = c.id '
+ . 'LEFT OUTER JOIN ' . $this->prefix . 'feed f ON f.category = c.id '
. 'LEFT OUTER JOIN ' . $this->prefix . 'entry e ON e.id_feed = f.id AND e.is_read = 0 '
. 'GROUP BY f.id '
. 'ORDER BY c.name, f.name';
@@ -502,6 +502,9 @@ class HelperFeed {
}
foreach ($listDAO as $key => $dao) {
+ if (empty ($dao['url'])) {
+ continue;
+ }
if (isset ($dao['id'])) {
$key = $dao['id'];