diff options
author | Andrew Dolgov <[email protected]> | 2019-05-20 07:12:43 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-05-20 07:12:43 +0300 |
commit | 09f520eda2f8ace131335c5a2837e712d4687dc8 (patch) | |
tree | 93627febe7cb6693884e2690ad1e8f1e437a819c /classes/feeds.php | |
parent | de713035fd96684cf8817b8cf0e5a980690ca260 (diff) |
fix search query test statement stopping valid modifiers like unread: from working
Diffstat (limited to 'classes/feeds.php')
-rwxr-xr-x | classes/feeds.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/feeds.php b/classes/feeds.php index c3a2098b5..815673491 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -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) { |