Skip to content

Commit

Permalink
Deleted empty lines added back.
Browse files Browse the repository at this point in the history
  • Loading branch information
siiriylonen committed Sep 4, 2023
1 parent d07e063 commit ce24f44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/RecordManager/Finna/Record/Ead3.php
Original file line number Diff line number Diff line change
Expand Up @@ -785,9 +785,11 @@ protected function parseDateRange($input)
$unknown = true;
}
$year = str_ireplace($dateForm['unit'], $defaultYear, $parts[0]);

if (isset($parts[1]) && !in_array(strtolower($parts[1]), $dateForm['date'])) {
$month = $parts[1];
}

if (isset($parts[2]) && !in_array(strtolower($parts[2]), $dateForm['date'])) {
$day = $parts[2];
}
Expand Down

0 comments on commit ce24f44

Please sign in to comment.