Skip to content

Commit bbaf07e

Browse files
authored
Merge pull request #151 from netbrothers-gmbh/150-undefined-array-key-2-in-analyseunh
Resolves #150
2 parents 370053b + 3852de8 commit bbaf07e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/EDI/Parser.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,10 @@ public function analyseUNH(array $line): void
276276
}
277277

278278
$this->messageFormat = $lineElement[0];
279-
$this->messageDirectory = $lineElement[2];
279+
280+
if (isset($lineElement[2])) {
281+
$this->messageDirectory = $lineElement[2];
282+
}
280283
}
281284

282285
/**

0 commit comments

Comments
 (0)