4
0
Эх сурвалжийг харах

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

Add a test in addQueryAction().
Marien Fressinaud 11 жил өмнө
parent
commit
666162ae56

+ 1 - 1
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;