]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
EntriesExport: avoid else on $authors 3826/head
authorKevin Decherf <kevin@kdecherf.com>
Wed, 9 Jan 2019 15:26:19 +0000 (16:26 +0100)
committerKevin Decherf <kevin@kdecherf.com>
Wed, 9 Jan 2019 15:26:19 +0000 (16:26 +0100)
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
src/Wallabag/CoreBundle/Helper/EntriesExport.php

index 1a611199412f5bd259c54fcc140feb08c0cf54f5..64591687d58e66a42eb129bb021f5fcfe5dbed79 100644 (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();