Commit 7638c415 authored by Andreas Wolf's avatar Andreas Wolf

Merge branch 'fix-indexer-if-no-authors-given' into 'develop'

Gets author only if given

See merge request !265
parents 854bac7c e2a28666
Pipeline #2719 passed with stages
in 4 minutes and 41 seconds
......@@ -125,7 +125,10 @@ class TerIndexer extends \ApacheSolrForTypo3\Solr\IndexQueue\Indexer
$document->setField('extensionDocumentationLink_stringS', $documentationLink);
// get multiple authors
$authors = GeneralUtility::trimExplode(',', $extension->getLastVersion()->getAuthor()->getName());
$authors = [];
if ($extension->getLastVersion() && $extension->getLastVersion()->getAuthor()) {
$authors = GeneralUtility::trimExplode(',', $extension->getLastVersion()->getAuthor()->getName());
}
$document->setField('author_textWstM', $authors);
}
......
Markdown is supported
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