From 696a6850db4f86a37e931ade575c9103fd36b27e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 17 Jan 2009 17:21:03 +0100 Subject: [PATCH] add fallback for headlines-unread element when ccache has no data --- backend.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend.php b/backend.php index 67990a2a..1a76c4f6 100644 --- a/backend.php +++ b/backend.php @@ -321,7 +321,12 @@ print ""; $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 ""; printf("", $disable_cache);