summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-24 12:34:44 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-24 12:34:44 +0200
commit666162ae56c2df8ae6a7ed6602b69f6caad10c7c (patch)
tree00f3ab555b464b93c184f5ddf89150144d4db1aa
parenta80e12cbf7a38d5a745b8ce980e9c662f9c64dfb (diff)
Fix a bug when $query['state'] doesn't exist
Add a test in addQueryAction().
-rwxr-xr-xapp/Controllers/configureController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php
index d2ca0777f..e6e9172e6 100755
--- a/app/Controllers/configureController.php
+++ b/app/Controllers/configureController.php
@@ -517,7 +517,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
unset($query[$key]);
}
}
- if ($query['state'] & FreshRSS_Entry::STATE_STRICT) {
+ if (!empty($query['state']) && $query['state'] & FreshRSS_Entry::STATE_STRICT) {
$query['state'] -= FreshRSS_Entry::STATE_STRICT;
}
$queries[] = $query;