소스 검색

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