Skip to content
Snippets Groups Projects
Commit 6a3e75d6 authored by Dorian Merz's avatar Dorian Merz
Browse files

refs #13867 adds empty return for getDeduplicatedAuthors()

parent 20ea7e5e
No related merge requests found
...@@ -641,6 +641,15 @@ trait SolrDefaultFincTrait ...@@ -641,6 +641,15 @@ trait SolrDefaultFincTrait
) )
]; ];
$all_empty = TRUE;
foreach ($authors as $type => $values) {
if (!empty($values)) {
$all_empty = FALSE;
break;
}
}
if ($all_empty) return [];
// deduplicate // deduplicate
$dedup = function (&$array1, &$array2) { $dedup = function (&$array1, &$array2) {
if (!empty($array1) && !empty($array2)) { if (!empty($array1) && !empty($array2)) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment