aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-09-21 18:49:34 -0400
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-09-21 18:49:34 -0400
commitc791d84ded1eeb1b32fe81918ac1bcfa520c6bda (patch)
tree452ad57990559ebe0c171b0b64b9f7da13e05878 /app/Controllers
parent23e4577e02944567b8ac15581d9c0a0561d82046 (diff)
Fix user queries
Before, when adding a user query where the state contains the strict filter, the label applied to the query was wrong. Now, the strict filter is always removed so the label applied is correct.
Diffstat (limited to 'app/Controllers')
-rwxr-xr-xapp/Controllers/configureController.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php
index 2bd13997f..426cad34d 100755
--- a/app/Controllers/configureController.php
+++ b/app/Controllers/configureController.php
@@ -504,6 +504,9 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
unset($query[$key]);
}
}
+ if ($query['state'] & FreshRSS_Entry::STATE_STRICT) {
+ $query['state'] -= FreshRSS_Entry::STATE_STRICT;
+ }
$queries[] = $query;
$this->view->conf->_queries($queries);
$this->view->conf->save();