From: Andrew Dolgov Date: Mon, 14 Aug 2017 19:29:50 +0000 (+0300) Subject: filters/edit: properly parse feed-specific legacy format filter rules X-Git-Tag: 17.12~130 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=edefcec19d43c261c5bd5ee7382149581757058e;p=tt-rss.git filters/edit: properly parse feed-specific legacy format filter rules --- diff --git a/classes/pref/filters.php b/classes/pref/filters.php index 268c488c..6ea233cb 100755 --- a/classes/pref/filters.php +++ b/classes/pref/filters.php @@ -409,7 +409,7 @@ class Pref_Filters extends Handler_Protected { if (sql_bool_to_bool($line["cat_filter"])) { $feed_id = "CAT:" . (int)$line["cat_id"]; } else { - $feed_id = (int)$line["cat_id"]; + $feed_id = (int)$line["feed_id"]; } $line["feed_id"] = ["" . $feed_id]; // set item type to string for in_array()