summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-17 15:06:32 +0100
committerAndrew Dolgov <[email protected]>2009-01-17 15:06:32 +0100
commitc98e43db6f3300e5c1e27c1ec1fd59712d434277 (patch)
treef9fd5bf23c9855ddc20a183d7a8f71a0f0b161a1 /functions.php
parent5f4f7adfa0d02dbfb18ec49e71b5d6a9c42d765e (diff)
ccache_update: block labels
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index f3b2b1509..ce1813449 100644
--- a/functions.php
+++ b/functions.php
@@ -5974,6 +5974,12 @@
function ccache_update($link, $feed_id, $owner_uid, $is_cat = false,
$update_pcat = true) {
+ /* Labels are no currently supported */
+
+ if ($feed_id < 0) {
+ return -1;
+ }
+
$prev_unread = ccache_find($link, $feed_id, $owner_uid, $is_cat, true);
if (!$is_cat) {