Catch unset row.

This commit is contained in:
James Cole
2016-09-29 07:02:47 +02:00
parent 3ec8a8c375
commit dbb5cdb9cf

View File

@@ -50,9 +50,15 @@ class AbnAmroDescription implements SpecificInterface
public function run(array $row): array
{
$this->row = $row;
if (!isset($row[7])) {
return $row;
}
// Try to parse the description in known formats.
$parsed = $this->parseSepaDescription() || $this->parseTRTPDescription() || $this->parseGEABEADescription() || $this->parseABNAMRODescription();
// If the description could not be parsed, specify an unknown opposing
// account, as an opposing account is required
if (!$parsed) {