瀏覽代碼

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;