From: Andrew Dolgov Date: Sun, 19 May 2013 05:54:48 +0000 (+0400) Subject: when checking filter expression for validity, do not include ttrss_feed_categories... X-Git-Tag: 1.8~90 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7711086b9ac137094edd8cdc1ffa3d8ebb0e37ec;p=tt-rss.git when checking filter expression for validity, do not include ttrss_feed_categories (closes #689) --- diff --git a/include/functions.php b/include/functions.php index 5296f9e6..2a8c23b5 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2334,8 +2334,10 @@ $filter_query_part = filter_to_sql($filter, $owner_uid); // Try to check if SQL regexp implementation chokes on a valid regexp + + $result = db_query("SELECT true AS true_val FROM ttrss_entries, - ttrss_user_entries, ttrss_feeds, ttrss_feed_categories + ttrss_user_entries, ttrss_feeds WHERE $filter_query_part LIMIT 1", false); if ($result) {