Skip to content

Commit

Permalink
Fixes null pass for ExtDate object
Browse files Browse the repository at this point in the history
  • Loading branch information
HyphenHook committed Apr 1, 2024
1 parent 72e4baf commit 715bd05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin/CitationFieldFormatter/EdtfDateFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ protected function parseDate($string) {
else {
// Parser returned an ExtDate object.
$date_parts = [
[
array_filter([
$edtf_value->getYear(),
$edtf_value->getMonth(),
$edtf_value->getDay(),
],
]),
];
}
return [
Expand Down

0 comments on commit 715bd05

Please sign in to comment.