]> git.wh0rd.org Git - tt-rss.git/commitdiff
make inverse mode of Both filter do be somewhat more logical
authorAndrew Dolgov <fox@bah.spb.su>
Tue, 20 Jan 2009 13:54:14 +0000 (14:54 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Tue, 20 Jan 2009 13:54:14 +0000 (14:54 +0100)
functions.php

index 6ae16331f5e2066b5ef0fce39f5bfdcf7201e945..1cdd5e2c935460f795a8dd6ef44584ec2b09e4d2 100644 (file)
                                $inverse = $filter["inverse"];
 
                                if ($inverse) {
-                                       if (!preg_match("/$reg_exp/i", $title) || !preg_match("/$reg_exp/i", $content)) {
+                                       if (!preg_match("/$reg_exp/i", $title) && !preg_match("/$reg_exp/i", $content)) {
                                                array_push($matches, array($filter["action"], $filter["action_param"]));
                                        }
                                } else {