Explorar o código

Fix variable type bug

Alan Lam %!s(int64=8) %!d(string=hai) anos
pai
achega
82bbbc8aff
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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