From: nicosomb Date: Mon, 3 Feb 2014 16:11:00 +0000 (+0100) Subject: [fix] #389 Empty article title (blank title tag) X-Git-Tag: 1.4.0^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=fa0bfb775a53a074e0a9d642298685b5ed1af83f;p=github%2Fwallabag%2Fwallabag.git [fix] #389 Empty article title (blank title tag) --- diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 77361ef7..4df90067 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -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())) {