Skip to content

Commit

Permalink
Adjust for sniffer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismacdonaldw committed Aug 22, 2024
1 parent c7b9a52 commit 666581e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Plugin/migrate/process/AssembleDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,12 @@ public function transform($value, MigrateExecutableInterface $migrate_executable
$return_dates[] = $date_range;
}

// Get single dates and add them to return_dates
// Get single dates and add them to return_dates.
$single_dates = $this->getValues ? $row->get($this->dates['single_date']) : $this->dates['single_date'];
if (is_array($single_dates)) {
$return_dates = array_merge($return_dates, $single_dates);
} elseif ($single_dates !== NULL) {
}
elseif ($single_dates !== NULL) {
$return_dates[] = $single_dates;
}

Expand Down

0 comments on commit 666581e

Please sign in to comment.