فهرست منبع

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

Add a test in addQueryAction().
Marien Fressinaud 11 سال پیش
والد
کامیت
666162ae56
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/Controllers/configureController.php

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