update_feedbrowser_cache: properly skip feeds with configured authentication

This commit is contained in:
Andrew Dolgov 2011-04-21 15:52:41 +04:00
parent 207d8118b4
commit d206ae1d6a
1 changed files with 1 additions and 1 deletions

View File

@ -5884,7 +5884,7 @@
$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");