EntriesExport: avoid else on $authors

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
Kevin Decherf 2019-01-09 16:26:19 +01:00
parent dac93644e8
commit 5e1f27767b

View file

@ -189,10 +189,9 @@ class EntriesExport
$filename = sha1($entry->getTitle());
$publishedBy = $entry->getPublishedBy();
$authors = $this->translator->trans('export.unknown');
if (!empty($publishedBy)) {
$authors = implode(',', $publishedBy);
} else {
$authors = $this->translator->trans('export.unknown');
}
$titlepage = $content_start .
@ -305,10 +304,9 @@ class EntriesExport
}
$publishedBy = $entry->getPublishedBy();
$authors = $this->translator->trans('export.unknown');
if (!empty($publishedBy)) {
$authors = implode(',', $publishedBy);
} else {
$authors = $this->translator->trans('export.unknown');
}
$pdf->addPage();