queryFeedHeadlines: make sure feed_check_qpart is always defined

This commit is contained in:
Andrew Dolgov 2020-12-04 08:55:22 +03:00
parent 904d5f7a3b
commit 1580748c17
1 changed files with 2 additions and 0 deletions

View File

@ -1702,6 +1702,8 @@ class Feeds extends Handler_Protected {
} }
} }
$feed_check_qpart = "";
if (!$allow_archived) { if (!$allow_archived) {
$from_qpart = "${ext_tables_part}ttrss_entries LEFT JOIN ttrss_user_entries ON (ref_id = ttrss_entries.id),ttrss_feeds"; $from_qpart = "${ext_tables_part}ttrss_entries LEFT JOIN ttrss_user_entries ON (ref_id = ttrss_entries.id),ttrss_feeds";
$feed_check_qpart = "ttrss_user_entries.feed_id = ttrss_feeds.id AND"; $feed_check_qpart = "ttrss_user_entries.feed_id = ttrss_feeds.id AND";