mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-23 09:31:04 +00:00
EntriesExport: avoid else on $authors
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
parent
dac93644e8
commit
5e1f27767b
1 changed files with 2 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue