diff options
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/EntriesExport.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/EntriesExport.php b/src/Wallabag/CoreBundle/Helper/EntriesExport.php index 1a611199..64591687 100644 --- a/src/Wallabag/CoreBundle/Helper/EntriesExport.php +++ b/src/Wallabag/CoreBundle/Helper/EntriesExport.php | |||
@@ -189,10 +189,9 @@ class EntriesExport | |||
189 | $filename = sha1($entry->getTitle()); | 189 | $filename = sha1($entry->getTitle()); |
190 | 190 | ||
191 | $publishedBy = $entry->getPublishedBy(); | 191 | $publishedBy = $entry->getPublishedBy(); |
192 | $authors = $this->translator->trans('export.unknown'); | ||
192 | if (!empty($publishedBy)) { | 193 | if (!empty($publishedBy)) { |
193 | $authors = implode(',', $publishedBy); | 194 | $authors = implode(',', $publishedBy); |
194 | } else { | ||
195 | $authors = $this->translator->trans('export.unknown'); | ||
196 | } | 195 | } |
197 | 196 | ||
198 | $titlepage = $content_start . | 197 | $titlepage = $content_start . |
@@ -305,10 +304,9 @@ class EntriesExport | |||
305 | } | 304 | } |
306 | 305 | ||
307 | $publishedBy = $entry->getPublishedBy(); | 306 | $publishedBy = $entry->getPublishedBy(); |
307 | $authors = $this->translator->trans('export.unknown'); | ||
308 | if (!empty($publishedBy)) { | 308 | if (!empty($publishedBy)) { |
309 | $authors = implode(',', $publishedBy); | 309 | $authors = implode(',', $publishedBy); |
310 | } else { | ||
311 | $authors = $this->translator->trans('export.unknown'); | ||
312 | } | 310 | } |
313 | 311 | ||
314 | $pdf->addPage(); | 312 | $pdf->addPage(); |