From: Andrew Dolgov Date: Tue, 20 Jan 2009 13:54:14 +0000 (+0100) Subject: make inverse mode of Both filter do be somewhat more logical X-Git-Tag: 1.3.0~30 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d404ae81a5894500e6f45462d32dd03cc26f1d4b;p=tt-rss.git make inverse mode of Both filter do be somewhat more logical --- diff --git a/functions.php b/functions.php index 6ae16331..1cdd5e2c 100644 --- a/functions.php +++ b/functions.php @@ -1529,7 +1529,7 @@ $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 {