summaryrefslogtreecommitdiff
path: root/classes/pref/filters.php
diff options
context:
space:
mode:
authorjustauser <[email protected]>2013-06-27 11:57:49 -0400
committerjustauser <[email protected]>2013-06-27 11:57:49 -0400
commit7171f32dc5ace4f36e1e70605ae96ebdbdf25c4f (patch)
treee998d4fca34cebe801c982d1d7bf8932adbf218a /classes/pref/filters.php
parent891e36f57e2e3955a4f13019e8fdc58fce826434 (diff)
parentfac096405338e0f46fa248320318436d862678fc (diff)
Merge remote-tracking branch 'origin' into hookhead
Conflicts: classes/feeds.php fix for merging up to the origin
Diffstat (limited to 'classes/pref/filters.php')
-rw-r--r--classes/pref/filters.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/pref/filters.php b/classes/pref/filters.php
index 099c88252..63318033e 100644
--- a/classes/pref/filters.php
+++ b/classes/pref/filters.php
@@ -590,14 +590,15 @@ class Pref_Filters extends Handler_Protected {
$enabled = checkbox_to_sql_bool($_REQUEST["enabled"]);
$match_any_rule = checkbox_to_sql_bool($_REQUEST["match_any_rule"]);
$title = $this->dbh->escape_string($_REQUEST["title"]);
+ $inverse = checkbox_to_sql_bool($_REQUEST["inverse"]);
$this->dbh->query("BEGIN");
/* create base filter */
$result = $this->dbh->query("INSERT INTO ttrss_filters2
- (owner_uid, match_any_rule, enabled, title) VALUES
- (".$_SESSION["uid"].",$match_any_rule,$enabled, '$title')");
+ (owner_uid, match_any_rule, enabled, title, inverse) VALUES
+ (".$_SESSION["uid"].",$match_any_rule,$enabled, '$title', $inverse)");
$result = $this->dbh->query("SELECT MAX(id) AS id FROM ttrss_filters2
WHERE owner_uid = ".$_SESSION["uid"]);