forked from wallabag/wallabag
EntriesExport: avoid else on $authors
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
@ -189,10 +189,9 @@ class EntriesExport
|
|||||||
$filename = sha1($entry->getTitle());
|
$filename = sha1($entry->getTitle());
|
||||||
|
|
||||||
$publishedBy = $entry->getPublishedBy();
|
$publishedBy = $entry->getPublishedBy();
|
||||||
|
$authors = $this->translator->trans('export.unknown');
|
||||||
if (!empty($publishedBy)) {
|
if (!empty($publishedBy)) {
|
||||||
$authors = implode(',', $publishedBy);
|
$authors = implode(',', $publishedBy);
|
||||||
} else {
|
|
||||||
$authors = $this->translator->trans('export.unknown');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$titlepage = $content_start .
|
$titlepage = $content_start .
|
||||||
@ -305,10 +304,9 @@ class EntriesExport
|
|||||||
}
|
}
|
||||||
|
|
||||||
$publishedBy = $entry->getPublishedBy();
|
$publishedBy = $entry->getPublishedBy();
|
||||||
|
$authors = $this->translator->trans('export.unknown');
|
||||||
if (!empty($publishedBy)) {
|
if (!empty($publishedBy)) {
|
||||||
$authors = implode(',', $publishedBy);
|
$authors = implode(',', $publishedBy);
|
||||||
} else {
|
|
||||||
$authors = $this->translator->trans('export.unknown');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$pdf->addPage();
|
$pdf->addPage();
|
||||||
|
|||||||
Reference in New Issue
Block a user