]> git.wh0rd.org Git - tt-rss.git/commitdiff
ccache: disable force overriding owner_uid on real feeds (why was this needed?)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Feb 2013 11:16:00 +0000 (15:16 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Feb 2013 11:16:00 +0000 (15:16 +0400)
include/ccache.php

index d036100ce0b7649d0201ffd1f423231472b368bb..c53b1a08c140558e8cb3050637ad55880998bb30 100644 (file)
 
                if (!$is_cat) {
                        $table = "ttrss_counters_cache";
-                       if ($feed_id > 0) {
+                       /* if ($feed_id > 0) {
                                $tmp_result = db_query($link, "SELECT owner_uid FROM ttrss_feeds
                                        WHERE id = '$feed_id'");
                                $owner_uid = db_fetch_result($tmp_result, 0, "owner_uid");
-                       }
+                       } */
                } else {
                        $table = "ttrss_cat_counters_cache";
                }
 
                if (!is_numeric($feed_id)) return;
 
-               if (!$is_cat && $feed_id > 0) {
+               /* if (!$is_cat && $feed_id > 0) {
                        $tmp_result = db_query($link, "SELECT owner_uid FROM ttrss_feeds
                                WHERE id = '$feed_id'");
                        $owner_uid = db_fetch_result($tmp_result, 0, "owner_uid");
-               }
+               } */
 
                $prev_unread = ccache_find($link, $feed_id, $owner_uid, $is_cat, true);