1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:35:55 +00: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") { 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 { try {
$test_sth->execute(); $test_sth->execute();
} catch (PDOException $e) { } catch (PDOException $e) {