diff --git a/app/Import/Specifics/IngDescription.php b/app/Import/Specifics/IngDescription.php index 35b3f63df1..382c9bb8a4 100644 --- a/app/Import/Specifics/IngDescription.php +++ b/app/Import/Specifics/IngDescription.php @@ -135,9 +135,10 @@ class IngDescription implements SpecificInterface protected function moveValutadatumDescription(): void { $matches = array(); - preg_match('/Valutadatum: ([0-9-]+)/', $this->row[8], $matches); - $this->row[9] = date("Ymd", strtotime($matches[1])); - $this->row[8] = preg_replace('/Valutadatum: [0-9-]+/', '', $this->row[8]); + if (preg_match('/Valutadatum: ([0-9-]+)/', $this->row[8], $matches)) { + $this->row[9] = date("Ymd", strtotime($matches[1])); + $this->row[8] = preg_replace('/Valutadatum: [0-9-]+/', '', $this->row[8]); + } } /**