Pledge page specifically mentions question 4.
This commit is contained in:
@@ -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"];
|
||||||
|
|||||||
Reference in New Issue
Block a user