]> git.wh0rd.org - tt-rss.git/commitdiff
update_feedbrowser_cache: properly skip feeds with configured authentication 1.5.3-proper
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 21 Apr 2011 11:52:41 +0000 (15:52 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 21 Apr 2011 11:52:41 +0000 (15:52 +0400)
functions.php

index f966a9a0a34f092dd31d86456ffd56932cf980ce..e66c84aeed5061938c18c5c80a858abc69db005f 100644 (file)
                $result = db_query($link, "SELECT feed_url, site_url, title, COUNT(id) AS subscribers
                        FROM ttrss_feeds WHERE (SELECT COUNT(id) = 0 FROM ttrss_feeds AS tf
                                WHERE tf.feed_url = ttrss_feeds.feed_url
-                               AND (private IS true OR feed_url LIKE '%:%@%/%'))
+                               AND (private IS true OR auth_login != '' OR auth_pass != '' OR feed_url LIKE '%:%@%/%'))
                                GROUP BY feed_url, site_url, title ORDER BY subscribers DESC LIMIT 1000");
 
                db_query($link, "BEGIN");