Skip to content

Commit

Permalink
hotfix: restore deleted if clause
Browse files Browse the repository at this point in the history
  • Loading branch information
twitnic committed Nov 25, 2021
1 parent 23f5fc2 commit 2ec8418
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Jejik/MT940/Parser/AbstractParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,11 @@ protected function getTransactionLines(string $text): ?array
if (count($amountLine) === 0 && count($multiPurposeField) === 0) {
return $result;
}
if ($amountLine[1] === null) {
return $result;
}

$count = count($amountLine[1]);

for ($i = 0; $i < $count; $i++) {
$result[$i][] = trim($amountLine[1][$i]);
$result[$i][] = trim(str_replace(':86:', '', $multiPurposeField[1][$i]));
Expand Down

0 comments on commit 2ec8418

Please sign in to comment.