]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/Poche.class.php
[fix] #389 Empty article title (blank title tag)
[github/wallabag/wallabag.git] / 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())) {