Skip to content
Snippets Groups Projects
Commit ad53b07f authored by Kristof's avatar Kristof Committed by Demian Katz
Browse files

SolrMarc.php getAllSubjectHeadings - now returns unique array

parent 456f8a1e
No related merge requests found
...@@ -130,8 +130,10 @@ class SolrMarc extends SolrDefault ...@@ -130,8 +130,10 @@ class SolrMarc extends SolrDefault
} }
} }
// Send back everything we collected: // Remove duplicates and then send back everything we collected:
return $retval; return array_map(
'unserialize', array_unique(array_map('serialize', $retval))
);
} }
/** /**
......
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