]> git.wh0rd.org - tt-rss.git/commitdiff
feedbrowser hack
authorMike Frysinger <vapier@gmail.com>
Tue, 2 Apr 2013 04:36:37 +0000 (00:36 -0400)
committerMike Frysinger <vapier@gmail.com>
Mon, 10 Dec 2018 01:18:39 +0000 (20:18 -0500)
include/feedbrowser.php

index 8ebeb20ccd898e292265c566eda9dc5c4c9617d4..aa55048d3314cf54459e6a487ce3bc7d9eb75c51 100644 (file)
@@ -21,9 +21,9 @@
                                                (SELECT feed_url, site_url, title, subscribers FROM ttrss_feedbrowser_cache UNION ALL
                                                        SELECT feed_url, site_url, title, subscribers FROM ttrss_linked_feeds) AS qqq
                                                WHERE
                                                (SELECT feed_url, site_url, title, subscribers FROM ttrss_feedbrowser_cache UNION ALL
                                                        SELECT feed_url, site_url, title, subscribers FROM ttrss_linked_feeds) AS qqq
                                                WHERE
-                                                       (SELECT COUNT(id) = 0 FROM ttrss_feeds AS tf
+                                                       (SELECT COUNT(id) != 0 FROM ttrss_feeds AS tf
                                                                WHERE tf.feed_url = qqq.feed_url
                                                                WHERE tf.feed_url = qqq.feed_url
-                                                                       AND owner_uid = ?) $search_qpart
+                                                                       ) $search_qpart
                                                GROUP BY feed_url, site_url, title ORDER BY subscribers DESC LIMIT " . (int)$limit);
                        $sth->execute([$_SESSION['uid']]);
 
                                                GROUP BY feed_url, site_url, title ORDER BY subscribers DESC LIMIT " . (int)$limit);
                        $sth->execute([$_SESSION['uid']]);