]> git.wh0rd.org Git - tt-rss.git/commitdiff
filters/edit: properly parse feed-specific legacy format filter rules
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 14 Aug 2017 19:29:50 +0000 (22:29 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 14 Aug 2017 19:29:50 +0000 (22:29 +0300)
classes/pref/filters.php

index 268c488c1a34f9fe92267d2916d34590a54224aa..6ea233cb6c22933f6643af54e6f9971e1323e9aa 100755 (executable)
@@ -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()