Fix skipping candidates that have whitespace in the first column

This commit is contained in:
2024-09-20 22:04:55 +10:00
parent af53825c05
commit bb66d8c50e

View File

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