From 5f1b39f7dcb2835c8ff4e2182cb6826d82446579 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 19 Dec 2018 09:04:04 +0300 Subject: [PATCH] filter tree: don't crash on search, also search by filter titles --- classes/pref/filters.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/classes/pref/filters.php b/classes/pref/filters.php index a9fa39624..e802e5879 100755 --- a/classes/pref/filters.php +++ b/classes/pref/filters.php @@ -268,6 +268,10 @@ class Pref_Filters extends Handler_Protected { $match_ok = false; if ($filter_search) { + if (mb_strpos($line['title'], $filter_search) !== false) { + $match_ok = true; + } + $rules_sth = $this->pdo->prepare("SELECT reg_exp FROM ttrss_filters2_rules WHERE filter_id = ?"); $rules_sth->execute([$line['id']]); @@ -752,7 +756,7 @@ class Pref_Filters extends Handler_Protected { print "
-
";