From 14edf8900e0275785d61b6e2f21be7489c83496b Mon Sep 17 00:00:00 2001 From: welblaud Date: Wed, 2 Dec 2020 09:17:05 +0100 Subject: [PATCH] Filter out empty arrays --- module/VuFind/src/VuFind/RecordDriver/EDS.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/module/VuFind/src/VuFind/RecordDriver/EDS.php b/module/VuFind/src/VuFind/RecordDriver/EDS.php index 946a29af3b9..d89a7ce33ac 100644 --- a/module/VuFind/src/VuFind/RecordDriver/EDS.php +++ b/module/VuFind/src/VuFind/RecordDriver/EDS.php @@ -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)); } /**