Ver Fonte

Fix variable type bug

Alan Lam há 8 anos atrás
pai
commit
82bbbc8aff
1 ficheiros alterados com 1 adições e 0 exclusões
  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");
 $to_quarter = http::value("to_quarter");
 
 
 $project_ids = http::value("project_ids", "int");
 $project_ids = http::value("project_ids", "int");
+if(!is_array($project_ids)) $project_ids = [];
 
 
 $all_projects = Project::query([
 $all_projects = Project::query([
 	"customer_id" => $customer->id
 	"customer_id" => $customer->id