Skip to content

A free, self-hostable news aggregator…

Fix a bug when $query['state'] doesn't exist

Marien Fressinaud666162ae56c2
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;