diff --git a/src/Helper/EntriesExport.php b/src/Helper/EntriesExport.php index db57ff31b..5fb181fda 100644 --- a/src/Helper/EntriesExport.php +++ b/src/Helper/EntriesExport.php @@ -92,11 +92,14 @@ class EntriesExport return $this; } - $this->author = $this->entries[0]->getDomainName(); - $publishedBy = $this->entries[0]->getPublishedBy(); - if (!empty($publishedBy)) { + $domainName = $this->entries[0]->getDomainName(); + if (!empty($publishedBy) && !empty($publishedBy[0])) { $this->author = implode(', ', $publishedBy); + } elseif (!empty($domainName)) { + $this->author = $domainName; + } else { + $this->author = $this->translator->trans('export.unknown'); } return $this; @@ -135,16 +138,16 @@ class EntriesExport /* * Start and End of the book */ - $content_start = + $chapterStart = "\n" . "\n" . '
' . "\n" - . "