add fallback for headlines-unread element when ccache has no data

This commit is contained in:
Andrew Dolgov 2009-01-17 17:21:03 +01:00
parent cfcb7d4276
commit 696a6850db
1 changed files with 6 additions and 1 deletions

View File

@ -321,7 +321,12 @@
print "<vgroup-last-feed value=\"$vgroup_last_feed\"/>";
$headlines_unread = ccache_find($link, $returned_feed, $_SESSION["uid"],
$cat_view);
$cat_view, true);
if ($headlines_unread == -1) {
$headlines_unread = getFeedUnread($link, $returned_feed, $cat_view);
}
print "<headlines-unread value=\"$headlines_unread\"/>";
printf("<disable-cache value=\"%d\"/>", $disable_cache);