Fix skipping candidates with whitespace around the word "Candidate" in the first column
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user