Skip lines that have an empty candidate name

This commit is contained in:
2024-09-04 20:19:50 +10:00
parent 6aca0bc039
commit b0b09178e8

View File

@@ -86,7 +86,7 @@ if (($handle = fopen($inputFile, "r")) !== FALSE) {
$candidateName = trim($data[1]); $candidateName = trim($data[1]);
if ($candidateName == "example name") { if ($candidateName == "example name" || $candidateName == "") {
error_log("Skipping line ". $currentLine); error_log("Skipping line ". $currentLine);
continue; continue;
} }