ソースを参照

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