Commit e2a28666 authored by Thomas Löffler's avatar Thomas Löffler

Gets author only if given

parent d5d84677
Pipeline #2626 passed with stages
in 3 minutes and 49 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