fix php warning while testing filters with regexps too complex for the database

This commit is contained in:
Andrew Dolgov 2013-02-20 09:34:00 +04:00
parent acfbab375d
commit 7726063cf2
1 changed files with 8 additions and 4 deletions

View File

@ -2153,6 +2153,7 @@
ttrss_user_entries, ttrss_feeds, ttrss_feed_categories ttrss_user_entries, ttrss_feeds, ttrss_feed_categories
WHERE $filter_query_part LIMIT 1", false); WHERE $filter_query_part LIMIT 1", false);
if ($result) {
$test = db_fetch_result($result, 0, "true_val"); $test = db_fetch_result($result, 0, "true_val");
if (!$test) { if (!$test) {
@ -2160,6 +2161,9 @@
} else { } else {
$filter_query_part .= " AND"; $filter_query_part .= " AND";
} }
} else {
$filter_query_part = "false AND";
}
} else { } else {
$filter_query_part = ""; $filter_query_part = "";