diff options
author | Andrew Dolgov <[email protected]> | 2013-03-25 20:08:34 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-25 20:09:37 +0400 |
commit | ec1f8a3d8ae9e00ea980c1b8f7cef158209be47d (patch) | |
tree | 200e331076d6cf0ea4e8dd1bc3d7362aabc06367 /include/functions.php | |
parent | bcd4d2408630c2270510f318075ec7ab52f1de75 (diff) |
fix inverse rule to only mean negative regexp matching except for whole rule (refs #631)
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php index 9a855a9bc..682ffd2ee 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3905,6 +3905,8 @@ break; } + if (isset($rule['inverse'])) $qpart = "NOT ($qpart)"; + if (isset($rule["feed_id"]) && $rule["feed_id"] > 0) { $qpart .= " AND feed_id = " . db_escape_string($link, $rule["feed_id"]); } @@ -3925,8 +3927,6 @@ $qpart .= " AND $cat_qpart"; } - if (isset($rule['inverse'])) $qpart = "NOT ($qpart)"; - array_push($query, "($qpart)"); } |