Skip to content

Commit

Permalink
Filter out empty arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
welblaud authored and demiankatz committed Dec 2, 2020
1 parent 9756c8a commit 14edf89
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions module/VuFind/src/VuFind/RecordDriver/EDS.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,12 +445,11 @@ public function getTitle()
*/
public function getPrimaryAuthors()
{
return array_unique(
$this->extractEbscoDataFromRecordInfo(
'BibRecord/BibRelationships/HasContributorRelationships/*/'
$authors = $this->extractEbscoDataFromRecordInfo(
'BibRecord/BibRelationships/HasContributorRelationships/*/'
. 'PersonEntity/Name/NameFull'
)
);
return array_unique(array_filter($authors));
}

/**
Expand Down

0 comments on commit 14edf89

Please sign in to comment.