1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-25 11:57:42 +02:00

fix search query test statement stopping valid modifiers like unread: from working

This commit is contained in:
Andrew Dolgov 2019-05-20 07:12:43 +03:00
parent de713035fd
commit 09f520eda2

View File

@ -1460,7 +1460,9 @@ class Feeds extends Handler_Protected {
}
if (DB_TYPE == "pgsql") {
$test_sth = $pdo->prepare("select $search_query_part from ttrss_entries limit 1");
$test_sth = $pdo->prepare("select $search_query_part
FROM ttrss_entries, ttrss_user_entries WHERE id = ref_id limit 1");
try {
$test_sth->execute();
} catch (PDOException $e) {