1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 12:05:55 +00:00

use Uncategorized coalesce in a few more places

This commit is contained in:
Andrew Dolgov
2012-06-30 16:40:47 +04:00
parent 310fa2ddef
commit 68916212b2
2 changed files with 2 additions and 5 deletions

View File

@@ -869,7 +869,7 @@ class Feeds extends Protected_Handler {
$query = "SELECT ttrss_feeds.id, ttrss_feeds.title,
".SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated_noms,
cat_id,last_error,
ttrss_feed_categories.title AS category,
COALESCE(ttrss_feed_categories.title, '".__('Uncategorized')."') AS category,
ttrss_feed_categories.collapsed,
value AS unread
FROM ttrss_feeds LEFT JOIN ttrss_feed_categories
@@ -905,7 +905,6 @@ class Feeds extends Protected_Handler {
$cat_id = $line["cat_id"];
$tmp_category = $line["category"];
if (!$tmp_category) $tmp_category = __("Uncategorized");
if ($category != $tmp_category && $enable_cats) {