Fix skipping candidates that have whitespace in the first column
This commit is contained in:
@@ -78,7 +78,7 @@ if (($handle = fopen($inputFile, "r")) !== FALSE) {
|
|||||||
$currentWard = "Coastal-Promontory";
|
$currentWard = "Coastal-Promontory";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($data[0] == "Candidate" || $data[0] == "") {
|
if ($data[0] == "Candidate" || trim($data[0]) == "") {
|
||||||
if ($currentWard == null) {
|
if ($currentWard == null) {
|
||||||
error_log("No ward found, skipping data on line " . $currentLine);
|
error_log("No ward found, skipping data on line " . $currentLine);
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user