Pledge page specifically mentions question 4.

This commit is contained in:
Kim Taylor
2025-04-18 11:00:42 +10:00
parent 1e3e4a99e6
commit babf8f81b6

View File

@@ -49,7 +49,8 @@ foreach ($candidate_data as $key => $candidate) {
if ($candidate['q4'] === "Yes") $score++; if ($candidate['q4'] === "Yes") $score++;
$candidate_data[$key]['Score'] = $score; $candidate_data[$key]['Score'] = $score;
$candidate_data[$key]['Pledge'] = $score > 0 ? "Yes" : "No";
$candidate_data[$key]['Pledge'] = $candidate['q4'];
} }
$header = ["Candidate Name", "Rating", "Pledge", "Picture"]; $header = ["Candidate Name", "Rating", "Pledge", "Picture"];