summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-17 17:21:03 +0100
committerAndrew Dolgov <[email protected]>2009-01-17 17:21:03 +0100
commit696a6850db4f86a37e931ade575c9103fd36b27e (patch)
treeb2303fe3d69fe59371d9ae8197b7e557bad975fe /backend.php
parentcfcb7d4276234d422063753f55e23dedfcf40522 (diff)
add fallback for headlines-unread element when ccache has no data
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/backend.php b/backend.php
index 67990a2a9..1a76c4f6b 100644
--- a/backend.php
+++ b/backend.php
@@ -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);