From d404ae81a5894500e6f45462d32dd03cc26f1d4b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 20 Jan 2009 14:54:14 +0100 Subject: [PATCH] make inverse mode of Both filter do be somewhat more logical --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 6ae16331f..1cdd5e2c9 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 {