Преглед изворни кода

Fix array to string conversion

Alan Lam пре 2 година
родитељ
комит
fa86e29994
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      template_processing/age_verification/project_customer_csv.php

+ 2 - 2
template_processing/age_verification/project_customer_csv.php

@@ -32,8 +32,8 @@ foreach($tests as $test) {
 	$tester = $test->getTester();
 	$values = $test->getValues(true);
 
-	$total_test_count = $location->getCompletedTests();
-	$current_test_count = $location->getCompletedTests(["dts_start" => $year_cycle_constraint]);
+	$total_test_count = count($location->getCompletedTests());
+	$current_test_count = count($location->getCompletedTests(["dts_start" => $year_cycle_constraint]));
 
 	$test_date = "";
 	$test_start = "";