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
1 changed files with 3 additions and 1 deletions

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) {