Fix skipping candidates with whitespace around the word "Candidate" in the first column

This commit is contained in:
2024-09-20 22:59:51 +10:00
parent bb66d8c50e
commit 1f80ec41db

View File

@@ -78,7 +78,7 @@ if (($handle = fopen($inputFile, "r")) !== FALSE) {
$currentWard = "Coastal-Promontory";
}
}
if ($data[0] == "Candidate" || trim($data[0]) == "") {
if (trim($data[0]) == "Candidate" || trim($data[0]) == "") {
if ($currentWard == null) {
error_log("No ward found, skipping data on line " . $currentLine);
continue;