aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorKevin Decherf <kevin@kdecherf.com>2019-01-09 16:26:19 +0100
committerKevin Decherf <kevin@kdecherf.com>2019-01-09 16:26:19 +0100
commit5e1f27767bc2dcf0760bc3061544ecbb833ad5e7 (patch)
tree2f9017b6bf8a79b4b55c9c3592908bf4f56f440d /src/Wallabag
parentdac93644e8585cc6b2ea1a0409b11ed82bb8169d (diff)
downloadwallabag-5e1f27767bc2dcf0760bc3061544ecbb833ad5e7.tar.gz
wallabag-5e1f27767bc2dcf0760bc3061544ecbb833ad5e7.tar.zst
wallabag-5e1f27767bc2dcf0760bc3061544ecbb833ad5e7.zip
EntriesExport: avoid else on $authors
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Helper/EntriesExport.php6
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();