|
|
@ -4208,7 +4208,7 @@
|
|
|
|
function printCategoryHeader($link, $cat_id, $hidden = false, $can_browse = true) {
|
|
|
|
function printCategoryHeader($link, $cat_id, $hidden = false, $can_browse = true) {
|
|
|
|
|
|
|
|
|
|
|
|
$tmp_category = getCategoryTitle($link, $cat_id);
|
|
|
|
$tmp_category = getCategoryTitle($link, $cat_id);
|
|
|
|
$cat_unread = getCategoryUnread($link, $cat_id);
|
|
|
|
$cat_unread = ccache_find($link, $cat_id, $_SESSION["uid"], true);
|
|
|
|
|
|
|
|
|
|
|
|
if ($hidden) {
|
|
|
|
if ($hidden) {
|
|
|
|
$holder_style = "display:none;";
|
|
|
|
$holder_style = "display:none;";
|
|
|
@ -6058,12 +6058,7 @@
|
|
|
|
$table = "ttrss_cat_counters_cache";
|
|
|
|
$table = "ttrss_cat_counters_cache";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!$is_cat) {
|
|
|
|
if ($is_cat && $feed_id > 0) {
|
|
|
|
|
|
|
|
|
|
|
|
$unread = (int) getFeedArticles($link, $feed_id, $is_cat, true, $owner_uid);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($feed_id != 0) {
|
|
|
|
if ($feed_id != 0) {
|
|
|
|
$cat_qpart = "cat_id = '$feed_id'";
|
|
|
|
$cat_qpart = "cat_id = '$feed_id'";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -6077,6 +6072,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
$unread = db_fetch_result($result, 0, "sv");
|
|
|
|
$unread = db_fetch_result($result, 0, "sv");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$unread = (int) getFeedArticles($link, $feed_id, $is_cat, true, $owner_uid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$result = db_query($link, "SELECT feed_id FROM $table
|
|
|
|
$result = db_query($link, "SELECT feed_id FROM $table
|
|
|
|