Просмотр исходного кода

Fix array to string conversion

Alan Lam 2 лет назад
Родитель
Сommit
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 = "";