]> git.wh0rd.org Git - tt-rss.git/commitdiff
filter rule saving fix
authorAndrew Dolgov <noreply@fakecake.org>
Sat, 2 Dec 2017 19:47:47 +0000 (22:47 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sat, 2 Dec 2017 19:47:47 +0000 (22:47 +0300)
classes/pref/filters.php

index a9d1557bc9083c9850bcb9979f67c35508c5a383..f24d0a01bc77e085bc5a4c2270837b6685b2e96a 100755 (executable)
@@ -696,7 +696,7 @@ class Pref_Filters extends Handler_Protected {
                                if ($rule) {
 
                                        $reg_exp = trim($rule["reg_exp"]);
-                                       $inverse = isset($rule["inverse"]) ? true : false;
+                                       $inverse = isset($rule["inverse"]) ? 1 : 0;
 
                                        $filter_type = (int)trim($rule["filter_type"]);
                                        $match_on = json_encode($rule["feed_id"]);