]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
[fix] #389 Empty article title (blank title tag) 427/head
authornicosomb <nicolas@loeuillet.org>
Mon, 3 Feb 2014 16:11:00 +0000 (17:11 +0100)
committernicosomb <nicolas@loeuillet.org>
Mon, 3 Feb 2014 16:11:14 +0000 (17:11 +0100)
inc/poche/Poche.class.php

index 77361ef7a5782bdb962fe3b3f06ec11eb508997e..4df90067d042ade1f82c0f64eeb9ac4ea4c38ecf 100644 (file)
@@ -375,7 +375,7 @@ class Poche
         {
             case 'add':
                 $content = $this->getPageContent($url);
-                $title = $content['rss']['channel']['item']['title'];
+                $title = ($content['rss']['channel']['item']['title'] != '') ? $content['rss']['channel']['item']['title'] : _('Untitled');
                 $body = $content['rss']['channel']['item']['description'];
 
                 if ($this->store->add($url->getUrl(), $title, $body, $this->user->getId())) {