Skip to content
Snippets Groups Projects
Commit 0a563462 authored by Demian Katz's avatar Demian Katz
Browse files

Improved compatibility with older Solr schemas.

- Reduces conflicts with pre-improved-author-indexing designs.
- See discussion on pull request #650.
parent b8007c8a
No related merge requests found
...@@ -1056,8 +1056,8 @@ class SolrDefault extends AbstractBase ...@@ -1056,8 +1056,8 @@ class SolrDefault extends AbstractBase
*/ */
public function getPrimaryAuthors() public function getPrimaryAuthors()
{ {
return isset($this->fields['author']) ? return isset($this->fields['author'])
$this->fields['author'] : []; ? (array) $this->fields['author'] : [];
} }
/** /**
......
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