Skip to content

Commit b83960f

Browse files
committed
TSV files can have different number of items per line
1 parent b483088 commit b83960f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Service/ImportExportService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ protected function importTeamsTsv(array $content, ?string &$message = null): int
804804
if (empty($teamIcpcId)) {
805805
$teamIcpcId = null;
806806
}
807-
$affiliationExternalid = preg_replace('/^INST-(U-)?/', '', @$line[7]);
807+
$affiliationExternalid = preg_replace('/^INST-(U-)?/', '', $line[7] ?? '');
808808
if (empty($affiliationExternalid)) {
809809
// TODO: note that when we set this external ID to NULL, we *will* add team affiliations
810810
// multiple times, as the App\Entity\TeamAffiliation query below will not find an affiliation.

0 commit comments

Comments
 (0)