]> git.wh0rd.org - tt-rss.git/commitdiff
ccache_update: block labels
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 17 Jan 2009 14:06:32 +0000 (15:06 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 17 Jan 2009 14:06:32 +0000 (15:06 +0100)
functions.php

index f3b2b1509e7b9e03f7c145afe5535cd35ee502e8..ce1813449718e3c1d181c90505b7016059d8ca36 100644 (file)
        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) {