瀏覽代碼

Fix variable type bug

Alan Lam 8 年之前
父節點
當前提交
82bbbc8aff
共有 1 個文件被更改,包括 1 次插入 和 0 次删除
  1. 1 0
      controllers/performance.php

+ 1 - 0
controllers/performance.php

@@ -23,6 +23,7 @@ $from_quarter = http::value("from_quarter");
 $to_quarter = http::value("to_quarter");
 
 $project_ids = http::value("project_ids", "int");
+if(!is_array($project_ids)) $project_ids = [];
 
 $all_projects = Project::query([
 	"customer_id" => $customer->id