summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-20 14:54:14 +0100
committerAndrew Dolgov <[email protected]>2009-01-20 14:54:14 +0100
commitd404ae81a5894500e6f45462d32dd03cc26f1d4b (patch)
tree404d95566434e92309dce4245a18510a82249792 /functions.php
parent863be6cad660220b4164a67f1cc8d179b981ff03 (diff)
make inverse mode of Both filter do be somewhat more logical
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php2
1 files changed, 1 insertions, 1 deletions
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 {